setfiles and relabeling
As fixfiles calls setfiles we need the attached patch so that setfiles runs in the correct domain for a autorelabel on boot. Things still work otherwise (the machine will be in permissive mode), but it gives more AVC messages which hide things that may be worth seeing.
Signature · 4 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page
program/setfiles.te renamed from program/setfiles.te.orig +3 -0
@@ -26,6 +26,9 @@ domain_auto_trans(secadmin, setfiles_exec_t, setfiles_t) allow setfiles_t { userdomain privfd initrc_t init_t }:fd use; +ifdef(`distro_redhat', ` +domain_auto_trans(initrc_t, setfiles_exec_t, setfiles_t) +') uses_shlib(setfiles_t) allow setfiles_t self:capability { dac_override dac_read_search fowner };