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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9862A158086 for ; Fri, 12 Nov 2021 02:00:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DAAA42BC178; Fri, 12 Nov 2021 02:00:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BCEAA2BC178 for ; Fri, 12 Nov 2021 02:00:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A26E63431AB for ; Fri, 12 Nov 2021 02:00:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 22C1613F for ; Fri, 12 Nov 2021 02:00:27 +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: <1636681980.42a6dc478442e531cd701638057210d9b1c58ec1.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/admin/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/admin/logrotate.te X-VCS-Directories: policy/modules/admin/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 42a6dc478442e531cd701638057210d9b1c58ec1 X-VCS-Branch: master Date: Fri, 12 Nov 2021 02:00:27 +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: d89d301c-8ce9-407a-94d1-0d705b5df11b X-Archives-Hash: be9087c35fe0f0de716e3a227146c67d commit: 42a6dc478442e531cd701638057210d9b1c58ec1 Author: Jonathan Davies protonmail com> AuthorDate: Fri May 28 14:00:30 2021 +0000 Commit: Jason Zaman gentoo org> CommitDate: Fri Nov 12 01:53:00 2021 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=42a6dc47 logrotate.te: Added boolean for allowing logrotate to rotate the audit log. Signed-off-by: Jonathan Davies protonmail.com> Signed-off-by: Jason Zaman gentoo.org> policy/modules/admin/logrotate.te | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/policy/modules/admin/logrotate.te b/policy/modules/admin/logrotate.te index 1c704120..1419d878 100644 --- a/policy/modules/admin/logrotate.te +++ b/policy/modules/admin/logrotate.te @@ -5,6 +5,14 @@ policy_module(logrotate, 1.26.0) # Declarations # +## +##

+## Determine whether logrotate can manage +## audit log files +##

+##
+gen_tunable(logrotate_manage_audit_log, false) + attribute_role logrotate_roles; roleattribute system_r logrotate_roles; @@ -138,6 +146,11 @@ ifdef(`distro_debian',` logging_read_syslog_config(logrotate_t) ') +tunable_policy(`logrotate_manage_audit_log',` + logging_manage_audit_log(logrotate_t) +') + + optional_policy(` abrt_manage_cache(logrotate_t) ')