Commit 859f6ba
committed
systemd: allow tmpfiles to handle auditd_log_t
audit installs a tmpfiles.d file for /var/log/audit [0]:
```
AVC avc: denied { relabelfrom } for pid=1439 comm="systemd-tmpfile" name="audit" dev="dm-0" ino=1246029
scontext=system_u:system_r:systemd_tmpfiles_t:s0
tcontext=system_u:object_r:auditd_log_t:s0
tclass=dir
AVC avc: denied { relabelto } for pid=1439 comm="systemd-tmpfile" name="audit" dev="dm-0" ino=1246029
scontext=system_u:system_r:systemd_tmpfiles_t:s0
tcontext=system_u:object_r:auditd_log_t:s0
tclass=dir
```
An explicit allow is needed because auditd_log_t is a security_file.
[0] linux-audit/audit-userspace@eb3a9a6
Signed-off-by: Sam James <sam@gentoo.org>1 parent 041c9a6 commit 859f6ba
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2268 | 2268 | | |
2269 | 2269 | | |
2270 | 2270 | | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
2271 | 2279 | | |
2272 | 2280 | | |
2273 | 2281 | | |
| |||
0 commit comments