aboutsummaryrefslogtreecommitdiff
blob: 676567d8a939f8d9c4abc7c8011513befce39fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
policy_module(ncftool, 1.3.0)

########################################
#
# Declarations
#

attribute_role ncftool_roles;
roleattribute system_r ncftool_roles;

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 ncftool_roles types ncftool_t;

########################################
#
# Local policy
#

allow ncftool_t self:capability net_admin;
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_read_etc_files(ncftool_t)
files_read_etc_runtime_files(ncftool_t)
files_read_usr_files(ncftool_t)

miscfiles_read_localization(ncftool_t)

sysnet_delete_dhcpc_pid(ncftool_t)
sysnet_run_dhcpc(ncftool_t, ncftool_roles)
sysnet_run_ifconfig(ncftool_t, ncftool_roles)
sysnet_etc_filetrans_config(ncftool_t)
sysnet_manage_config(ncftool_t)
sysnet_read_dhcpc_state(ncftool_t)
sysnet_read_dhcpc_pid(ncftool_t)
sysnet_signal_dhcpc(ncftool_t)

userdom_use_user_terminals(ncftool_t)
userdom_read_user_tmp_files(ncftool_t)

optional_policy(`
	brctl_run(ncftool_t, ncftool_roles)
')

optional_policy(`
	consoletype_exec(ncftool_t)
')

optional_policy(`
	dbus_system_bus_client(ncftool_t)
')

optional_policy(`
	iptables_initrc_domtrans(ncftool_t)
')

optional_policy(`
	modutils_read_module_config(ncftool_t)
	modutils_run(ncftool_t, ncftool_roles)
')

optional_policy(`
	netutils_run(ncftool_t, ncftool_roles)
')