Chris PeBenito 0fbfa5
#DESC Su - Run shells with substitute user and group
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# Domains for the su program.
Chris PeBenito 0fbfa5
# X-Debian-Packages: login
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# su_exec_t is the type of the su executable.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type su_exec_t, file_type, sysadmfile;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
allow sysadm_su_t user_home_dir_type:dir search;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# Everything else is in the su_domain macro in
Chris PeBenito 0fbfa5
# macros/program/su_macros.te.
Chris PeBenito 77f6e2
Chris PeBenito 77f6e2
ifdef(`use_mcs', `
Chris PeBenito 77f6e2
ifdef(`targeted_policy', `
Chris PeBenito 77f6e2
range_transition unconfined_t su_exec_t s0 - s0:c0.c255;
Chris PeBenito 77f6e2
domain_auto_trans(unconfined_t, su_exec_t, sysadm_su_t)
Chris PeBenito 77f6e2
can_exec(sysadm_su_t, bin_t)
Chris PeBenito 77f6e2
rw_dir_create_file(sysadm_su_t, home_dir_type)
Chris PeBenito 77f6e2
')
Chris PeBenito 77f6e2
')