[DSE-Dev] Bug#739590: selinux-policy-default: ssh & bind9 broken by removal of hotplug script initrc labelling
Devin Carraway
devin at debian.org
Thu Feb 20 08:28:43 UTC 2014
Package: selinux-policy-default
Version: 2:2.20140206-1
Severity: important
On a jessie system with refpolicy 2:2.20140206-1, and allow-hotplug
set on the primary network interface, sshd is left running in udev_t,
breaking it thoroughly (and in fact flooding the logs with socket
errors until the machine runs out of disk). bind9, which also has a hotplug
trigger script, is broken by inability of rndc to access auth keys.
My guess as to why:
Removal of the debian-specific refpolicy patches in rev
853ebfe7118c3984ff2b53f51af6f5758d222cd7 had the effect of returning the
contents of /etc/network/if-{up,down}.d/ from initrc_exec_t to etc_t. As
a result, on systems with allow-hotplug on their primary network interfaces
the sshd and any other network-using daemons aware of hotplug will be started
from udev rather than init, and with an etc_t startup script the usual domain
transition doesn't happen.
I'll test out restoring the labelling and see if there's more to this.
Years ago, thus was Bug#503941 at least as it impacted bind.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-updates'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.12-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages selinux-policy-default depends on:
ii libpam-modules 1.1.8-2
ii libselinux1 2.2.2-1
ii libsepol1 2.2-1
ii policycoreutils 2.2.5-1
ii python 2.7.5-5
ii selinux-utils 2.2.2-1
Versions of packages selinux-policy-default recommends:
ii checkpolicy 2.2-1
ii setools 3.3.8-3
Versions of packages selinux-policy-default suggests:
pn logcheck <none>
pn syslog-summary <none>
-- Configuration Files:
/etc/selinux/default/modules/active/file_contexts.local [Errno 13] Permission denied: u'/etc/selinux/default/modules/active/file_contexts.local'
-- debconf-show failed
More information about the SELinux-devel
mailing list