Chris PeBenito 130f8a
Chris PeBenito 130f8a
policy_module(netlabel,1.0.0)
Chris PeBenito 130f8a
Chris PeBenito 130f8a
########################################
Chris PeBenito 130f8a
#
Chris PeBenito 130f8a
# Declarations
Chris PeBenito 130f8a
#
Chris PeBenito 130f8a
Chris PeBenito 130f8a
type netlabel_mgmt_t;
Chris PeBenito 130f8a
type netlabel_mgmt_exec_t;
Chris PeBenito 130f8a
domain_type(netlabel_mgmt_t)
Chris PeBenito 130f8a
domain_entry_file(netlabel_mgmt_t,netlabel_mgmt_exec_t)
Chris PeBenito 130f8a
Chris PeBenito 130f8a
########################################
Chris PeBenito 130f8a
#
Chris PeBenito 130f8a
# NetLabel Management Tools Local policy
Chris PeBenito 130f8a
#
Chris PeBenito 130f8a
Chris PeBenito 130f8a
# modify the network subsystem configuration
Chris PeBenito 130f8a
allow netlabel_mgmt_t self:capability net_admin;
Chris PeBenito 130f8a
allow netlabel_mgmt_t self:netlink_socket create_socket_perms;
Chris PeBenito 130f8a
Chris PeBenito 130f8a
kernel_read_network_state(netlabel_mgmt_t)
Chris PeBenito 130f8a
Chris PeBenito 130f8a
libs_use_ld_so(netlabel_mgmt_t)
Chris PeBenito 130f8a
libs_use_shared_libs(netlabel_mgmt_t)
Chris PeBenito 130f8a
Chris PeBenito 130f8a
seutil_use_newrole_fds(netlabel_mgmt_t)