An element for putting SELinux in permissive mode

This is useful for selinux debugging, so is most useful in its own
optional element.

Change-Id: I83532242eacbe211d3bb13e00436f682ca6d7e76
This commit is contained in:
Steve Baker 2013-05-14 11:56:01 +12:00
parent 6b44b6d274
commit 3bf171b2b5
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Puts selinux into permissive mode by writing SELINUX=permissive
to /etc/selinux/config
Enable this element when debugging selinux issues.

View File

@ -0,0 +1,5 @@
#!/bin/sh
echo "SELINUX=permissive" > /etc/selinux/config
echo "SELINUXTYPE=targeted" >> /etc/selinux/config