Merge remote-tracking branch 'origin/pr/272'

* origin/pr/272:
  Allow SELinux to stay enabled
This commit is contained in:
Marek Marczykowski-Górecki 2021-01-03 05:21:53 +01:00
commit c2f4e026a5
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -493,10 +493,15 @@ fi
exit 0
%triggerin -- selinux-policy
#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
. /usr/lib/qubes/init/functions
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
%post network-manager