Commit 7d1dc1f
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 d305828 commit 7d1dc1f
2 files changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1458 | 1458 | | |
1459 | 1459 | | |
1460 | 1460 | | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
1461 | 1497 | | |
1462 | 1498 | | |
1463 | 1499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2242 | 2242 | | |
2243 | 2243 | | |
2244 | 2244 | | |
| 2245 | + | |
| 2246 | + | |
2245 | 2247 | | |
2246 | 2248 | | |
2247 | 2249 | | |
| |||
0 commit comments