September 2014
Intermediate to advanced
240 pages
5h 53m
English
It is possible to have SELinux automatically switch roles when a certain application is executed. The usual checks still apply (such as if the role is a valid one for the user, does the current user domain have execute rights, and many more), but then, there is no longer a need to call runcon or sudo to switch the role.
Role transitions can be configured as follows:
~$ ls -Z puppetca system_u:object_r:puppetca_exec_t puppetca
interface(`puppet_roletrans_puppetca',` gen_require(` role puppetadm_r; type puppetca_t, puppetca_exec_t; ') allow $1 puppetadm_r; role_transition ...
Read now
Unlock full access