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

29 lines
614 B
Text
Raw Normal View History

policy_module(kafs, 1.0)
type kafs_exec_t;
files_type(kafs_exec_t)
type kafs_t;
domain_type(kafs_t)
application_domain(kafs_t, kafs_exec_t)
role system_r types kafs_t;
allow kafs_t self:netlink_route_socket create_netlink_socket_perms;
allow kafs_t self:udp_socket create_socket_perms;
allow kafs_t self:unix_dgram_socket create_socket_perms;
kernel_read_key(kafs_t)
kernel_view_key(kafs_t)
kernel_setattr_key(kafs_t)
sysnet_read_config(kafs_t)
optional_policy(`
logging_send_syslog_msg(kafs_t)
')
optional_policy(`
# /etc/request-key.d/kafs_dns.conf
keyutils_request_domtrans_to(kafs_t, kafs_exec_t)
')