Merge remote-tracking branch 'origin/pr/272'
* origin/pr/272: Allow SELinux to stay enabled
This commit is contained in:
commit
c2f4e026a5
@ -493,10 +493,15 @@ fi
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%triggerin -- selinux-policy
|
%triggerin -- selinux-policy
|
||||||
#echo "--> Disabling SELinux..."
|
|
||||||
sed -e s/^SELINUX=.*$/SELINUX=disabled/ </etc/selinux/config >/etc/selinux/config.processed
|
. /usr/lib/qubes/init/functions
|
||||||
mv /etc/selinux/config.processed /etc/selinux/config
|
|
||||||
setenforce 0 2>/dev/null
|
if ! is_protected_file /etc/selinux/config; then
|
||||||
|
echo "--> Disabling SELinux..."
|
||||||
|
sed -e s/^SELINUX=.*$/SELINUX=disabled/ </etc/selinux/config >/etc/selinux/config.processed
|
||||||
|
mv /etc/selinux/config.processed /etc/selinux/config
|
||||||
|
setenforce 0 2>/dev/null
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post network-manager
|
%post network-manager
|
||||||
|
Loading…
Reference in New Issue
Block a user