debian: remove SELinux disabling code

Debian doesn't have it enabled anyway. Do not prevent the user from
tinkering with that.

(reported by @adrelanos)
Fixes qubesos/qubes-issues#1103
This commit is contained in:
Marek Marczykowski-Górecki 2015-08-09 20:06:59 +02:00
parent a32020fb25
commit c6fa6c9b19
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 0 additions and 17 deletions

View File

@ -62,15 +62,6 @@ installSerialConf() {
fi
}
disableSELinux() {
debug "Disabling SELinux..."
if [ -e /etc/selinux/config ]; then
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
}
case "${1}" in
configure)
# Initial installation of package only
@ -119,9 +110,6 @@ case "${1}" in
# Maybe install overridden serial.conf init script
installSerialConf
# Maybe disable SELinux
disableSELinux
fi
debug "UPDATE..."
@ -187,10 +175,6 @@ case "${1}" in
installSerialConf
;;
# Disable SELinux"
/etc/selinux/config)
disableSELinux
;;
esac
done
exit 0

View File

@ -1,4 +1,3 @@
interest-noawait /usr/share/applications
interest-noawait /etc/xdg
interest-noawait /etc/init/serial.conf
interest-noawait /etc/selinux/config