aboutsummaryrefslogtreecommitdiff
blob: 414ad21e9366197ddf41fe10b11c9b559116f661 (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
policy_module(irqbalance, 1.8.0)

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

type irqbalance_t;
type irqbalance_exec_t;
init_daemon_domain(irqbalance_t, irqbalance_exec_t)

type irqbalance_initrc_exec_t;
init_script_file(irqbalance_initrc_exec_t)

type irqbalance_var_run_t;
files_pid_file(irqbalance_var_run_t)

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

allow irqbalance_t self:capability { setpcap net_admin };
dontaudit irqbalance_t self:capability sys_tty_config;
allow irqbalance_t self:process { getcap getsched setcap signal_perms };
allow irqbalance_t self:udp_socket create_socket_perms;

manage_files_pattern(irqbalance_t, irqbalance_var_run_t, irqbalance_var_run_t)
files_pid_filetrans(irqbalance_t, irqbalance_var_run_t, file)

kernel_read_network_state(irqbalance_t)
kernel_read_system_state(irqbalance_t)
kernel_read_kernel_sysctls(irqbalance_t)
kernel_rw_irq_sysctls(irqbalance_t)

dev_read_sysfs(irqbalance_t)

files_read_etc_files(irqbalance_t)
files_read_etc_runtime_files(irqbalance_t)

fs_getattr_all_fs(irqbalance_t)
fs_search_auto_mountpoints(irqbalance_t)

domain_use_interactive_fds(irqbalance_t)

logging_send_syslog_msg(irqbalance_t)

miscfiles_read_localization(irqbalance_t)

userdom_dontaudit_use_unpriv_user_fds(irqbalance_t)
userdom_dontaudit_search_user_home_dirs(irqbalance_t)

ifdef(`hide_broken_symptoms',`
	dontaudit irqbalance_t self:capability sys_module;
')

optional_policy(`
	seutil_sigchld_newrole(irqbalance_t)
')

optional_policy(`
	udev_read_db(irqbalance_t)
')