aboutsummaryrefslogtreecommitdiff
blob: 209454664586c51e461b31705a0bb990577a29d9 (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
policy_module(firewallgui, 1.1.0)

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

type firewallgui_t;
type firewallgui_exec_t;
init_system_domain(firewallgui_t, firewallgui_exec_t)

type firewallgui_tmp_t;
files_tmp_file(firewallgui_tmp_t)

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

allow firewallgui_t self:capability { net_admin sys_rawio } ;
allow firewallgui_t self:fifo_file rw_fifo_file_perms;

manage_files_pattern(firewallgui_t,firewallgui_tmp_t,firewallgui_tmp_t)
manage_dirs_pattern(firewallgui_t,firewallgui_tmp_t,firewallgui_tmp_t)
files_tmp_filetrans(firewallgui_t,firewallgui_tmp_t, { file dir })

kernel_read_system_state(firewallgui_t)
kernel_read_network_state(firewallgui_t)
kernel_rw_net_sysctls(firewallgui_t)
kernel_rw_kernel_sysctl(firewallgui_t)
kernel_rw_vm_sysctls(firewallgui_t)

corecmd_exec_bin(firewallgui_t)
corecmd_exec_shell(firewallgui_t)

dev_read_sysfs(firewallgui_t)
dev_read_urand(firewallgui_t)

files_list_kernel_modules(firewallgui_t)
files_read_usr_files(firewallgui_t)

auth_use_nsswitch(firewallgui_t)

miscfiles_read_localization(firewallgui_t)

seutil_read_config(firewallgui_t)

userdom_dontaudit_search_user_home_dirs(firewallgui_t)

optional_policy(`
	consoletype_exec(firewallgui_t)
')

optional_policy(`
	dbus_system_domain(firewallgui_t, firewallgui_exec_t)

	optional_policy(`
		policykit_dbus_chat(firewallgui_t)
	')
')

optional_policy(`
	gnome_read_generic_gconf_home_content(firewallgui_t)
')

optional_policy(`
	iptables_domtrans(firewallgui_t)
	iptables_initrc_domtrans(firewallgui_t)
')

optional_policy(`
	modutils_getattr_module_deps(firewallgui_t)
')