run_init policy
Quoted 7 lines
The question is this: Would it be better to change the above line to
run_program(sysadm_t, sysadm_r, init, {initrc_exec_t etc_t}, initrc_t)or, change the types on the rc files in
/etc/init.d, /etc/rc?.d?
Theinitrc_thas execute permission on those types. Is there a reason we keep the mass of rc files typed asetc_t?
The latter (assign initrc_exec_t to the other rc files). This is reasonable since any one of the files can be used as the entrypoint to the initrc_t domain when run_init is used. Originally, we only assigned initrc_exec_t to the scripts directly executed by init, since only those scripts served as entrypoints to the domain. With run_init, any of the scripts may be an entrypoint.
--
Stephen Smalley, NSA
[email protected]
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.