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