Selinux: Difference between revisions

From DWIKI
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:


=FAQ=
=FAQ=
==no audit2allow==
yum install policycoreutils-python
==allow apache processes to network==
==allow apache processes to network==
  setsebool -P httpd_can_network_connect 1
  setsebool -P httpd_can_network_connect 1
Line 18: Line 22:
==temporarily disable selinux==
==temporarily disable selinux==
   setenforce 0
   setenforce 0
==disable selinux==
edit /etc/selinux/config




==Add allow==
==Add allow==
(probably not this brutal)
(probably not this brutal)
  Grep AVC /var/log/audit/audit.log | audit2allow -M someservice
  Grep AVC /var/log/audit/audit.log | audit2allow -a -M someservice

Latest revision as of 08:56, 27 May 2019