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