Blame targeted/domains/program/newrole.te
|
Chris PeBenito |
ab58ad |
#DESC Newrole - SELinux utility to run a shell with a new role
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
# Authors: Anthony Colatrella (NSA)
|
|
Chris PeBenito |
ab58ad |
# Maintained by Stephen Smalley <sds@epoch.ncsc.mil>
|
|
Chris PeBenito |
ab58ad |
# X-Debian-Packages: policycoreutils
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
# secure mode means that newrole/sudo/su/userhelper cannot reach sysadm_t
|
|
Chris PeBenito |
ab58ad |
bool secure_mode false;
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
type newrole_exec_t, file_type, exec_type, sysadmfile;
|
|
Chris PeBenito |
ab58ad |
domain_auto_trans(userdomain, newrole_exec_t, newrole_t)
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
newrole_domain(newrole)
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
# Write to utmp.
|
|
Chris PeBenito |
ab58ad |
allow newrole_t var_run_t:dir r_dir_perms;
|
|
Chris PeBenito |
ab58ad |
allow newrole_t initrc_var_run_t:file rw_file_perms;
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
role secadm_r types newrole_t;
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
ifdef(`targeted_policy', `
|
|
Chris PeBenito |
ab58ad |
typeattribute newrole_t unconfinedtrans;
|
|
Chris PeBenito |
ab58ad |
')
|