92 lines
2.1 KiB
Plaintext
92 lines
2.1 KiB
Plaintext
|
policy_module(ncftool, 1.0.0)
|
||
|
|
||
|
########################################
|
||
|
#
|
||
|
# Declarations
|
||
|
#
|
||
|
|
||
|
type ncftool_t;
|
||
|
type ncftool_exec_t;
|
||
|
application_domain(ncftool_t, ncftool_exec_t)
|
||
|
domain_obj_id_change_exemption(ncftool_t)
|
||
|
domain_system_change_exemption(ncftool_t)
|
||
|
role system_r types ncftool_t;
|
||
|
|
||
|
permissive ncftool_t;
|
||
|
|
||
|
########################################
|
||
|
#
|
||
|
# ncftool local policy
|
||
|
#
|
||
|
|
||
|
allow ncftool_t self:capability { net_admin sys_ptrace };
|
||
|
|
||
|
allow ncftool_t self:process signal;
|
||
|
|
||
|
allow ncftool_t self:fifo_file manage_fifo_file_perms;
|
||
|
allow ncftool_t self:unix_stream_socket create_stream_socket_perms;
|
||
|
|
||
|
allow ncftool_t self:netlink_route_socket create_netlink_socket_perms;
|
||
|
allow ncftool_t self:tcp_socket create_stream_socket_perms;
|
||
|
|
||
|
kernel_read_kernel_sysctls(ncftool_t)
|
||
|
kernel_read_modprobe_sysctls(ncftool_t)
|
||
|
kernel_read_network_state(ncftool_t)
|
||
|
kernel_read_system_state(ncftool_t)
|
||
|
kernel_request_load_module(ncftool_t)
|
||
|
kernel_rw_net_sysctls(ncftool_t)
|
||
|
|
||
|
corecmd_exec_bin(ncftool_t)
|
||
|
corecmd_exec_shell(ncftool_t)
|
||
|
|
||
|
domain_read_all_domains_state(ncftool_t)
|
||
|
|
||
|
dev_read_sysfs(ncftool_t)
|
||
|
|
||
|
files_manage_system_conf_files(ncftool_t)
|
||
|
files_relabelto_system_conf_files(ncftool_t)
|
||
|
files_read_etc_files(ncftool_t)
|
||
|
files_read_etc_runtime_files(ncftool_t)
|
||
|
files_read_usr_files(ncftool_t)
|
||
|
|
||
|
term_use_all_terms(ncftool_t)
|
||
|
|
||
|
miscfiles_read_localization(ncftool_t)
|
||
|
|
||
|
modutils_list_module_config(ncftool_t)
|
||
|
modutils_read_module_config(ncftool_t)
|
||
|
modutils_domtrans_insmod(ncftool_t)
|
||
|
|
||
|
sysnet_delete_dhcpc_pid(ncftool_t)
|
||
|
sysnet_domtrans_dhcpc(ncftool_t)
|
||
|
sysnet_domtrans_ifconfig(ncftool_t)
|
||
|
sysnet_etc_filetrans_config(ncftool_t)
|
||
|
sysnet_manage_config(ncftool_t)
|
||
|
sysnet_read_dhcpc_state(ncftool_t)
|
||
|
sysnet_relabelfrom_net_conf(ncftool_t)
|
||
|
sysnet_relabelto_net_conf(ncftool_t)
|
||
|
sysnet_read_dhcpc_pid(ncftool_t)
|
||
|
sysnet_signal_dhcpc(ncftool_t)
|
||
|
|
||
|
userdom_read_user_tmp_files(ncftool_t)
|
||
|
|
||
|
optional_policy(`
|
||
|
consoletype_exec(ncftool_t)
|
||
|
')
|
||
|
|
||
|
optional_policy(`
|
||
|
dbus_system_bus_client(ncftool_t)
|
||
|
')
|
||
|
|
||
|
optional_policy(`
|
||
|
iptables_initrc_domtrans(ncftool_t)
|
||
|
')
|
||
|
|
||
|
optional_policy(`
|
||
|
iptables_initrc_domtrans(ncftool_t)
|
||
|
')
|
||
|
|
||
|
optional_policy(`
|
||
|
netutils_domtrans(ncftool_t)
|
||
|
')
|