Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BF98C433F5 for ; Thu, 17 Feb 2022 08:54:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237937AbiBQIyb (ORCPT ); Thu, 17 Feb 2022 03:54:31 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229830AbiBQIy3 (ORCPT ); Thu, 17 Feb 2022 03:54:29 -0500 Received: from smtp.sws.net.au (smtp.sws.net.au [IPv6:2a01:4f8:201:1e6::dada:cafe]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0AE723969A for ; Thu, 17 Feb 2022 00:54:14 -0800 (PST) Received: from xev.coker.com.au (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id 5B78DF249 for ; Thu, 17 Feb 2022 19:54:12 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1645088052; bh=15nyWOq3A3TRZhKr7BX/H+BDkE2oCVWM6aecsgAtKjs=; l=1840; h=Date:From:To:Subject:From; b=wxTsoHzdanOqTgJDz7NIDGXNdtsIFl4YR84sjRCihr/6i9WXShhF4hIItD/x+M6cr DfaRqpznuvjvQPXJ8U3SNzkB0bOHYfA0ngbF0T/2W7QeHmnH7RkNGM0q2LR/cO8RjB q73mXwyRaKtfsXUGkEK1Vt+/+cUQ2LGtE3uYOPZQ= Received: by xev.coker.com.au (Postfix, from userid 1001) id C94DF17347BE; Thu, 17 Feb 2022 19:54:07 +1100 (AEDT) Date: Thu, 17 Feb 2022 19:54:07 +1100 From: Russell Coker To: selinux-refpolicy@vger.kernel.org Subject: [PATCH] init dbus patch for GetDynamicUsers with systemd_use_nss() Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org As requested changed this patch to use systemd_use_nss(). I think it's ready to merge. Signed-off-by: Russell Coker Index: refpolicy-2.20220217/policy/modules/services/dictd.te =================================================================== --- refpolicy-2.20220217.orig/policy/modules/services/dictd.te +++ refpolicy-2.20220217/policy/modules/services/dictd.te @@ -79,3 +79,6 @@ optional_policy(` seutil_sigchld_newrole(dictd_t) ') +ifdef(`init_systemd',` + systemd_use_nss(dictd_t) +') Index: refpolicy-2.20220217/policy/modules/services/postfix.te =================================================================== --- refpolicy-2.20220217.orig/policy/modules/services/postfix.te +++ refpolicy-2.20220217/policy/modules/services/postfix.te @@ -374,11 +374,7 @@ manage_files_pattern(postfix_bounce_t, p 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) ') ######################################## @@ -753,6 +749,10 @@ optional_policy(` unconfined_run_to(postfix_showq_t, postfix_showq_exec_t) ') +optional_policy(` + systemd_use_nss(postfix_showq_t) +') + ######################################## # # Smtp delivery local policy @@ -777,6 +777,10 @@ optional_policy(` ') optional_policy(` + systemd_use_nss(postfix_smtp_t) +') + +optional_policy(` dovecot_stream_connect(postfix_smtp_t) ') @@ -814,9 +818,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(`