1 |
commit: 3f53590de965cda81024db69cc574633de1693e0 |
2 |
Author: Antoine Tenart <antoine.tenart <AT> bootlin <DOT> com> |
3 |
AuthorDate: Thu Aug 13 09:08:43 2020 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 21:00:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=3f53590d |
7 |
|
8 |
logging: allow systemd-journal to write messages to the audit socket |
9 |
|
10 |
Fixes: |
11 |
|
12 |
avc: denied { nlmsg_write } for pid=46 comm="systemd-journal" |
13 |
scontext=system_u:system_r:syslogd_t |
14 |
tcontext=system_u:system_r:syslogd_t tclass=netlink_audit_socket |
15 |
permissive=1 |
16 |
|
17 |
avc: denied { nlmsg_write } for pid=46 comm="systemd-journal" |
18 |
scontext=system_u:system_r:syslogd_t |
19 |
tcontext=system_u:system_r:syslogd_t tclass=netlink_audit_socket |
20 |
permissive=1 |
21 |
|
22 |
Signed-off-by: Antoine Tenart <antoine.tenart <AT> bootlin.com> |
23 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
24 |
|
25 |
policy/modules/system/logging.te | 2 +- |
26 |
1 file changed, 1 insertion(+), 1 deletion(-) |
27 |
|
28 |
diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te |
29 |
index 39664307..820fc8d3 100644 |
30 |
--- a/policy/modules/system/logging.te |
31 |
+++ b/policy/modules/system/logging.te |
32 |
@@ -524,7 +524,7 @@ ifdef(`init_systemd',` |
33 |
allow syslogd_t self:netlink_audit_socket connected_socket_perms; |
34 |
allow syslogd_t self:capability2 audit_read; |
35 |
allow syslogd_t self:capability { chown setgid setuid sys_ptrace }; |
36 |
- allow syslogd_t self:netlink_audit_socket { getattr getopt read setopt write }; |
37 |
+ allow syslogd_t self:netlink_audit_socket { getattr getopt read setopt write nlmsg_write }; |
38 |
|
39 |
# remove /run/log/journal when switching to permanent storage |
40 |
allow syslogd_t var_log_t:dir rmdir; |