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 138E015808B for ; Thu, 31 Mar 2022 03:31:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3762AE0824; Thu, 31 Mar 2022 03:31:30 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 94DD5E07C7 for ; Thu, 31 Mar 2022 03:31:29 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6ACCF3414D5 for ; Thu, 31 Mar 2022 03:31:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C43DF38D for ; Thu, 31 Mar 2022 03:31:24 +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: <1648694453.96b25ec181556bbae727bb32714c6d4438f6ce67.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/dictd.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: 96b25ec181556bbae727bb32714c6d4438f6ce67 X-VCS-Branch: master Date: Thu, 31 Mar 2022 03:31:24 +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: 4ec31b0a-dae1-45bf-b838-1ba185b600b8 X-Archives-Hash: 77b30a0066c5dfc6da2d68f2d7b08bc7 commit: 96b25ec181556bbae727bb32714c6d4438f6ce67 Author: Russell Coker coker com au> AuthorDate: Thu Feb 17 14:47:40 2022 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu Mar 31 02:40:53 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=96b25ec1 init dbus patch for GetDynamicUsers with systemd_use_nss() V2 Same as before but moved to the top of my patch list so it will apply to the git policy. Should be ready to merge now. Signed-off-by: Russell Coker coker.com.au> Signed-off-by: Jason Zaman gentoo.org> policy/modules/services/dictd.te | 3 +++ policy/modules/services/postfix.te | 18 ++++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/policy/modules/services/dictd.te b/policy/modules/services/dictd.te index a6bc5336..a286f7de 100644 --- a/policy/modules/services/dictd.te +++ b/policy/modules/services/dictd.te @@ -79,3 +79,6 @@ optional_policy(` seutil_sigchld_newrole(dictd_t) ') +ifdef(`init_systemd',` + systemd_use_nss(dictd_t) +') diff --git a/policy/modules/services/postfix.te b/policy/modules/services/postfix.te index 5c324bc7..0f865b00 100644 --- a/policy/modules/services/postfix.te +++ b/policy/modules/services/postfix.te @@ -374,11 +374,7 @@ manage_files_pattern(postfix_bounce_t, postfix_spool_bounce_t, postfix_spool_bou manage_lnk_files_pattern(postfix_bounce_t, postfix_spool_bounce_t, postfix_spool_bounce_t) optional_policy(` - init_dbus_chat(postfix_bounce_t) -') - -optional_policy(` - dbus_system_bus_client(postfix_bounce_t) + systemd_use_nss(postfix_bounce_t) ') ######################################## @@ -765,6 +761,10 @@ optional_policy(` cyrus_stream_connect(postfix_smtp_t) ') +optional_policy(` + systemd_use_nss(postfix_smtp_t) +') + optional_policy(` dovecot_stream_connect(postfix_smtp_t) ') @@ -773,6 +773,10 @@ optional_policy(` milter_stream_connect_all(postfix_smtp_t) ') +optional_policy(` + systemd_use_nss(postfix_showq_t) +') + ######################################## # # Smtpd local policy @@ -803,9 +807,7 @@ optional_policy(` ') optional_policy(` - dbus_send_system_bus(postfix_smtp_t) - dbus_system_bus_client(postfix_smtp_t) - init_dbus_chat(postfix_smtp_t) + systemd_use_nss(postfix_smtpd_t) ') optional_policy(`