aboutsummaryrefslogtreecommitdiff
blob: 6cedb872471f5b6660dc7cbb32887d0b3a5f7a3f (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
policy_module(cpufreqselector, 1.4.0)

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

type cpufreqselector_t;
type cpufreqselector_exec_t;
init_daemon_domain(cpufreqselector_t, cpufreqselector_exec_t)

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

allow cpufreqselector_t self:capability { sys_nice sys_ptrace };
allow cpufreqselector_t self:process getsched;
allow cpufreqselector_t self:fifo_file rw_fifo_file_perms;

kernel_read_system_state(cpufreqselector_t)

files_read_etc_files(cpufreqselector_t)
files_read_usr_files(cpufreqselector_t)

dev_rw_sysfs(cpufreqselector_t)

miscfiles_read_localization(cpufreqselector_t)

userdom_read_all_users_state(cpufreqselector_t)
userdom_dontaudit_search_user_home_dirs(cpufreqselector_t)

optional_policy(`
	dbus_system_domain(cpufreqselector_t, cpufreqselector_exec_t)

	optional_policy(`
		consolekit_dbus_chat(cpufreqselector_t)
	')

	optional_policy(`
		policykit_dbus_chat(cpufreqselector_t)
	')
')

optional_policy(`
	nscd_dontaudit_search_pid(cpufreqselector_t)
')

optional_policy(`
	policykit_domtrans_auth(cpufreqselector_t)
	policykit_read_lib(cpufreqselector_t)
	policykit_read_reload(cpufreqselector_t)
')