From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 52993138359 for ; Tue, 13 Oct 2020 03:02:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 16F7FE0833; Tue, 13 Oct 2020 03:02:08 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F0BCDE0833 for ; Tue, 13 Oct 2020 03:02:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BF85D340A60 for ; Tue, 13 Oct 2020 03:02:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 38C813A4 for ; Tue, 13 Oct 2020 03:02:05 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1602450005.3f53590de965cda81024db69cc574633de1693e0.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/logging.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 3f53590de965cda81024db69cc574633de1693e0 X-VCS-Branch: master Date: Tue, 13 Oct 2020 03:02:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d36ae65e-bab9-4bbc-8ee9-da0c0da3f701 X-Archives-Hash: afc463d4232155a705cd944a61ce1c0c commit: 3f53590de965cda81024db69cc574633de1693e0 Author: Antoine Tenart bootlin com> AuthorDate: Thu Aug 13 09:08:43 2020 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Oct 11 21:00:05 2020 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=3f53590d logging: allow systemd-journal to write messages to the audit socket Fixes: avc: denied { nlmsg_write } for pid=46 comm="systemd-journal" scontext=system_u:system_r:syslogd_t tcontext=system_u:system_r:syslogd_t tclass=netlink_audit_socket permissive=1 avc: denied { nlmsg_write } for pid=46 comm="systemd-journal" scontext=system_u:system_r:syslogd_t tcontext=system_u:system_r:syslogd_t tclass=netlink_audit_socket permissive=1 Signed-off-by: Antoine Tenart bootlin.com> Signed-off-by: Jason Zaman gentoo.org> policy/modules/system/logging.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te index 39664307..820fc8d3 100644 --- a/policy/modules/system/logging.te +++ b/policy/modules/system/logging.te @@ -524,7 +524,7 @@ ifdef(`init_systemd',` allow syslogd_t self:netlink_audit_socket connected_socket_perms; allow syslogd_t self:capability2 audit_read; allow syslogd_t self:capability { chown setgid setuid sys_ptrace }; - allow syslogd_t self:netlink_audit_socket { getattr getopt read setopt write }; + allow syslogd_t self:netlink_audit_socket { getattr getopt read setopt write nlmsg_write }; # remove /run/log/journal when switching to permanent storage allow syslogd_t var_log_t:dir rmdir;