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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
|
policy_module(acpi, 1.1.0)
########################################
#
# Declarations
#
attribute_role acpi_roles;
roleattribute system_r acpi_roles;
type acpid_t;
type acpid_exec_t;
init_daemon_domain(acpid_t, acpid_exec_t)
type acpid_initrc_exec_t;
init_script_file(acpid_initrc_exec_t)
type acpi_t;
type acpi_exec_t;
application_domain(acpi_t, acpi_exec_t)
role acpi_roles types acpi_t;
type acpid_lock_t;
files_lock_file(acpid_lock_t)
type acpid_log_t;
logging_log_file(acpid_log_t)
type acpid_runtime_t;
typealias acpid_runtime_t alias acpid_var_run_t;
files_pid_file(acpid_runtime_t)
type acpid_tmp_t;
files_tmp_file(acpid_tmp_t)
type acpid_unit_t;
init_unit_file(acpid_unit_t)
type acpid_var_lib_t;
files_type(acpid_var_lib_t)
########################################
#
# Client local policy
#
allow acpi_t self:capability { dac_override sys_admin };
kernel_read_system_state(acpi_t)
dev_rw_acpi_bios(acpi_t)
fs_getattr_xattr_fs(acpi_t)
term_use_all_terms(acpi_t)
domain_use_interactive_fds(acpi_t)
logging_send_syslog_msg(acpi_t)
########################################
#
# Server local policy
#
allow acpid_t self:capability { kill mknod sys_admin sys_nice sys_time };
dontaudit acpid_t self:capability { dac_override dac_read_search setuid sys_ptrace sys_tty_config };
allow acpid_t self:process { signal_perms getsession };
allow acpid_t self:fifo_file rw_fifo_file_perms;
allow acpid_t self:netlink_socket create_socket_perms;
allow acpid_t self:netlink_generic_socket create_socket_perms;
allow acpid_t self:unix_stream_socket { accept listen };
allow acpid_t acpid_lock_t:file manage_file_perms;
files_lock_filetrans(acpid_t, acpid_lock_t, file)
allow acpid_t acpid_log_t:file manage_file_perms;
logging_log_filetrans(acpid_t, acpid_log_t, file)
manage_dirs_pattern(acpid_t, acpid_tmp_t, acpid_tmp_t)
manage_files_pattern(acpid_t, acpid_tmp_t, acpid_tmp_t)
files_tmp_filetrans(acpid_t, acpid_tmp_t, { file dir })
manage_dirs_pattern(acpid_t, acpid_var_lib_t, acpid_var_lib_t)
manage_files_pattern(acpid_t, acpid_var_lib_t, acpid_var_lib_t)
files_var_lib_filetrans(acpid_t, acpid_var_lib_t, dir)
manage_files_pattern(acpid_t, acpid_runtime_t, acpid_runtime_t)
manage_sock_files_pattern(acpid_t, acpid_runtime_t, acpid_runtime_t)
files_pid_filetrans(acpid_t, acpid_runtime_t, { file sock_file })
can_exec(acpid_t, acpid_runtime_t)
kernel_read_kernel_sysctls(acpid_t)
kernel_rw_all_sysctls(acpid_t)
kernel_read_system_state(acpid_t)
kernel_write_proc_files(acpid_t)
kernel_request_load_module(acpid_t)
dev_read_input(acpid_t)
dev_read_mouse(acpid_t)
dev_read_realtime_clock(acpid_t)
dev_read_urand(acpid_t)
dev_rw_acpi_bios(acpid_t)
dev_rw_sysfs(acpid_t)
dev_dontaudit_getattr_all_chr_files(acpid_t)
dev_dontaudit_getattr_all_blk_files(acpid_t)
files_exec_etc_files(acpid_t)
files_read_etc_runtime_files(acpid_t)
files_dontaudit_getattr_all_files(acpid_t)
files_dontaudit_getattr_all_symlinks(acpid_t)
files_dontaudit_getattr_all_pipes(acpid_t)
files_dontaudit_getattr_all_sockets(acpid_t)
fs_dontaudit_list_tmpfs(acpid_t)
fs_getattr_all_fs(acpid_t)
fs_search_auto_mountpoints(acpid_t)
fs_dontaudit_getattr_all_files(acpid_t)
fs_dontaudit_getattr_all_symlinks(acpid_t)
fs_dontaudit_getattr_all_pipes(acpid_t)
fs_dontaudit_getattr_all_sockets(acpid_t)
selinux_search_fs(acpid_t)
corecmd_exec_all_executables(acpid_t)
domain_read_all_domains_state(acpid_t)
domain_dontaudit_ptrace_all_domains(acpid_t)
domain_use_interactive_fds(acpid_t)
domain_dontaudit_getattr_all_sockets(acpid_t)
domain_dontaudit_getattr_all_key_sockets(acpid_t)
domain_dontaudit_list_all_domains_state(acpid_t)
auth_use_nsswitch(acpid_t)
init_domtrans_script(acpid_t)
libs_exec_ld_so(acpid_t)
libs_exec_lib_files(acpid_t)
logging_send_audit_msgs(acpid_t)
logging_send_syslog_msg(acpid_t)
miscfiles_read_localization(acpid_t)
miscfiles_read_hwdata(acpid_t)
modutils_domtrans(acpid_t)
modutils_read_module_config(acpid_t)
seutil_dontaudit_read_config(acpid_t)
userdom_dontaudit_use_unpriv_user_fds(acpid_t)
userdom_dontaudit_search_user_home_dirs(acpid_t)
userdom_dontaudit_search_user_home_content(acpid_t)
optional_policy(`
automount_domtrans(acpid_t)
')
optional_policy(`
clock_domtrans(acpid_t)
clock_rw_adjtime(acpid_t)
')
optional_policy(`
cron_system_entry(acpid_t, acpid_exec_t)
cron_anacron_domtrans_system_job(acpid_t)
')
optional_policy(`
devicekit_manage_pid_files(acpid_t)
devicekit_manage_log_files(acpid_t)
devicekit_relabel_log_files(acpid_t)
')
optional_policy(`
dbus_system_bus_client(acpid_t)
optional_policy(`
consolekit_dbus_chat(acpid_t)
')
optional_policy(`
networkmanager_dbus_chat(acpid_t)
')
')
optional_policy(`
fstools_domtrans(acpid_t)
')
optional_policy(`
iptables_domtrans(acpid_t)
')
optional_policy(`
logrotate_use_fds(acpid_t)
')
optional_policy(`
mta_send_mail(acpid_t)
')
optional_policy(`
netutils_domtrans(acpid_t)
')
optional_policy(`
pcmcia_domtrans_cardmgr(acpid_t)
pcmcia_domtrans_cardctl(acpid_t)
')
optional_policy(`
seutil_sigchld_newrole(acpid_t)
')
optional_policy(`
shutdown_domtrans(acpid_t)
')
optional_policy(`
sysnet_domtrans_ifconfig(acpid_t)
')
optional_policy(`
udev_read_db(acpid_t)
udev_read_state(acpid_t)
')
optional_policy(`
vbetool_domtrans(acpid_t)
')
optional_policy(`
xserver_domtrans(acpid_t)
')
|