Oreon-Lime-R2/selinux-policy/selinux-policy-d9f4a2b/selinux-policy-d9f4a2bbeb91fd95d0c35a90936efb9ea99d2455/policy/modules/contrib/ptchown.te

31 lines
645 B
Text
Raw Normal View History

policy_module(ptchown, 1.2.0)
########################################
#
# Declarations
#
attribute_role ptchown_roles;
roleattribute system_r ptchown_roles;
type ptchown_t;
type ptchown_exec_t;
application_domain(ptchown_t, ptchown_exec_t)
role ptchown_roles types ptchown_t;
########################################
#
# Local policy
#
allow ptchown_t self:capability { chown fowner fsetid setuid };
allow ptchown_t self:process { getcap setcap };
term_setattr_generic_ptys(ptchown_t)
term_getattr_all_ptys(ptchown_t)
term_setattr_all_ptys(ptchown_t)
term_use_generic_ptys(ptchown_t)
term_use_ptmx(ptchown_t)
auth_read_passwd(ptchown_t)