initrc.te
Subsystems (2)
The attached patch (against the latest CVS version) simplifies the initrc_t domain declaration. The current version is difficult to read and leads to bugs (such as putting the unrestricted on only one of two lines where it was needed).
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
domains/program/initrc.te renamed from usr/src/se/policy/domains/program/initrc.te +3 -4
@@ -11,14 +11,13 @@ # initrc_t is the domain of the init rc scripts. # initrc_exec_t is the type of the init program. # -ifdef(`sendmail.te', ` # do not use privmail for sendmail as it creates a type transition conflict -type initrc_t, ifdef(`unlimitedRC', `admin, etc_writer, fs_domain, privmem, auth_write, unrestricted, ') domain, privlog, privowner, privmodule, sysctl_kernel_writer; +type initrc_t, ifdef(`unlimitedRC', `admin, etc_writer, fs_domain, privmem, auth_write, unrestricted, ') domain, privlog, privowner, privmodule, sysctl_kernel_writer, ifdef(`sendmail.te', `', `privmail'); +ifdef(`sendmail.te', ` allow system_mail_t initrc_t:fd use; allow system_mail_t initrc_t:fifo_file write; -', ` -type initrc_t, ifdef(`unlimitedRC', `admin, etc_writer, fs_domain, privmem,auth_write, ') domain, privlog, privowner, privmodule, sysctl_kernel_writer, privmail; ') + role system_r types initrc_t; uses_shlib(initrc_t); can_ypbind(initrc_t)