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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5C05F15808B for ; Sun, 27 Feb 2022 02:52:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 67AE42BC007; Sun, 27 Feb 2022 02:52:37 +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 086862BC007 for ; Sun, 27 Feb 2022 02:52:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 3CB2F3431CD for ; Sun, 27 Feb 2022 02:52:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6523F2FA for ; Sun, 27 Feb 2022 02:52:33 +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: <1645927997.e312e5bdbbf8d7c76b13d94b02ad56372d6d8b37.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/services/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/cron.te policy/modules/services/dbus.te policy/modules/services/policykit.te policy/modules/services/postfix.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: e312e5bdbbf8d7c76b13d94b02ad56372d6d8b37 X-VCS-Branch: master Date: Sun, 27 Feb 2022 02:52:33 +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: ecc66ba3-7c95-48d8-9f03-e6f7309af471 X-Archives-Hash: 6d92a2f5500aad84c5442bb279e3046a commit: e312e5bdbbf8d7c76b13d94b02ad56372d6d8b37 Author: Russell Coker coker com au> AuthorDate: Wed Feb 16 13:07:30 2022 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Feb 27 02:13:17 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e312e5bd dontaudit net_admin without hide_broken_symptoms Sending this patch again without the ifdef, I agree that the ifdef isn't very useful nowadays. Signed-off-by: Russell Coker coker.com.au> Signed-off-by: Jason Zaman gentoo.org> policy/modules/services/cron.te | 2 ++ policy/modules/services/dbus.te | 2 ++ policy/modules/services/policykit.te | 2 ++ policy/modules/services/postfix.te | 2 ++ 4 files changed, 8 insertions(+) diff --git a/policy/modules/services/cron.te b/policy/modules/services/cron.te index 03268277..9ecbe4d6 100644 --- a/policy/modules/services/cron.te +++ b/policy/modules/services/cron.te @@ -209,6 +209,8 @@ tunable_policy(`fcron_crond',` # Daemon local policy # +# for changing buffer sizes +dontaudit crond_t self:capability net_admin; allow crond_t self:capability { chown dac_override dac_read_search fowner setgid setuid sys_nice }; dontaudit crond_t self:capability { sys_resource sys_tty_config }; diff --git a/policy/modules/services/dbus.te b/policy/modules/services/dbus.te index c0b98558..9a1e6b30 100644 --- a/policy/modules/services/dbus.te +++ b/policy/modules/services/dbus.te @@ -67,6 +67,8 @@ ifdef(`enable_mls',` # Local policy # +# for changing buffer sizes +dontaudit system_dbusd_t self:capability net_admin; allow system_dbusd_t self:capability { dac_override setgid setpcap setuid sys_resource }; dontaudit system_dbusd_t self:capability sys_tty_config; allow system_dbusd_t self:process { getattr getsched signal_perms setpgid getcap setcap setrlimit }; diff --git a/policy/modules/services/policykit.te b/policy/modules/services/policykit.te index ee8f4c2d..46f5568f 100644 --- a/policy/modules/services/policykit.te +++ b/policy/modules/services/policykit.te @@ -68,6 +68,8 @@ miscfiles_read_localization(policykit_domain) # Local policy # +# for changing buffer sizes +dontaudit policykit_t self:capability net_admin; allow policykit_t self:capability { dac_override dac_read_search setgid setuid sys_nice sys_ptrace }; allow policykit_t self:process { getsched setsched signal }; allow policykit_t self:unix_stream_socket { accept connectto listen }; diff --git a/policy/modules/services/postfix.te b/policy/modules/services/postfix.te index 6b97df10..6fe06887 100644 --- a/policy/modules/services/postfix.te +++ b/policy/modules/services/postfix.te @@ -107,6 +107,8 @@ mta_mailserver_delivery(postfix_virtual_t) # Common postfix domain local policy # +# for changing buffer sizes +dontaudit postfix_domain self:capability net_admin; allow postfix_domain self:capability { sys_chroot sys_nice }; dontaudit postfix_domain self:capability sys_tty_config; allow postfix_domain self:process { signal_perms setpgid setsched };