Chris PeBenito 9401ae1
policy_module(ptchown, 1.1.0)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Declarations
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type ptchown_t;
Chris PeBenito 9401ae1
type ptchown_exec_t;
Chris PeBenito 9401ae1
application_domain(ptchown_t, ptchown_exec_t)
Chris PeBenito 9401ae1
role system_r types ptchown_t;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# ptchown local policy
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
allow ptchown_t self:capability { chown fowner fsetid setuid };
Chris PeBenito 9401ae1
allow ptchown_t self:process { getcap setcap };
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
files_read_etc_files(ptchown_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
fs_rw_anon_inodefs_files(ptchown_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
term_setattr_generic_ptys(ptchown_t)
Chris PeBenito 9401ae1
term_getattr_all_ptys(ptchown_t)
Chris PeBenito 9401ae1
term_setattr_all_ptys(ptchown_t)
Chris PeBenito 9401ae1
term_use_generic_ptys(ptchown_t)
Chris PeBenito 9401ae1
term_use_ptmx(ptchown_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
miscfiles_read_localization(ptchown_t)