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