-
Notifications
You must be signed in to change notification settings - Fork 3
/
log_container.cil
30 lines (23 loc) · 1.3 KB
/
log_container.cil
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
(block log_container
(blockinherit container)
(allow process var_t (dir (getattr search open)))
(allow process logfile (dir (ioctl read getattr lock search open)))
(allow process logfile (file (ioctl read getattr lock open map)))
(allow process auditd_log_t (dir (ioctl read getattr lock search open)))
(allow process auditd_log_t (file (ioctl read getattr lock open)))
)
(block log_rw_container
(blockinherit log_container)
(allow process logfile (dir (getattr search open)))
(allow process logfile (file (ioctl read write getattr lock append open)))
(allow process logfile (lnk_file (ioctl read write getattr lock append open)))
(allow process var_t (dir (getattr search open)))
(allow process auditd_log_t (dir (ioctl read write getattr lock search open)))
(allow process auditd_log_t (file (ioctl read write getattr lock open)))
)
(block log_manage_container
(blockinherit log_rw_container)
(allow process logfile (dir (ioctl read write create getattr setattr lock unlink link rename add_name remove_name reparent search rmdir open)))
(allow process logfile (file (ioctl read write create getattr setattr lock append unlink link rename open)))
(allow process logfile (lnk_file (ioctl read write create getattr setattr lock append unlink link rename)))
)