From: Chris PeBenito <chpebeni@linux.microsoft.com>
To: Russell Coker <russell@coker.com.au>, selinux-refpolicy@vger.kernel.org
Subject: Re: [PATCH] init dbus patch for GetDynamicUsers
Date: Wed, 16 Feb 2022 10:46:44 -0500 [thread overview]
Message-ID: <6947f06f-6a39-e6da-eac3-68e06ebb2ec4@linux.microsoft.com> (raw)
In-Reply-To: <Ygz380hW5LYcm6aL@xev.coker.com.au>
On 2/16/2022 08:11, Russell Coker wrote:
> Small patches for dbus access to talk to init for getting dynamic users
> with systemd. The daemons do such checks from library code.
>
> Signed-off-by: Russell Coker <russell@coker.com.au>
>
> Index: refpolicy-2.20220216/policy/modules/services/dictd.te
> ===================================================================
> --- refpolicy-2.20220216.orig/policy/modules/services/dictd.te
> +++ refpolicy-2.20220216/policy/modules/services/dictd.te
> @@ -79,3 +79,6 @@ optional_policy(`
> seutil_sigchld_newrole(dictd_t)
> ')
>
> +ifdef(`init_systemd',`
> + init_dbus_chat(dictd_t)
> +')
> Index: refpolicy-2.20220216/policy/modules/services/postfix.te
> ===================================================================
> --- refpolicy-2.20220216.orig/policy/modules/services/postfix.te
> +++ refpolicy-2.20220216/policy/modules/services/postfix.te
> @@ -376,9 +376,6 @@ manage_lnk_files_pattern(postfix_bounce_
>
> optional_policy(`
> init_dbus_chat(postfix_bounce_t)
> -')
> -
> -optional_policy(`
> dbus_system_bus_client(postfix_bounce_t)
> ')
>
> @@ -754,6 +751,11 @@ optional_policy(`
> unconfined_run_to(postfix_showq_t, postfix_showq_exec_t)
> ')
>
> +ifdef(`init_systemd',`
> + init_dbus_chat(postfix_showq_t)
> + dbus_system_bus_client(postfix_showq_t)
> +')
> +
> ########################################
> #
> # Smtp delivery local policy
> @@ -778,6 +780,12 @@ optional_policy(`
> ')
>
> optional_policy(`
> + dbus_send_system_bus(postfix_smtp_t)
> + dbus_system_bus_client(postfix_smtp_t)
> + init_dbus_chat(postfix_smtp_t)
> +')
> +
> +optional_policy(`
> dovecot_stream_connect(postfix_smtp_t)
> ')
>
> @@ -815,9 +823,8 @@ optional_policy(`
> ')
>
> optional_policy(`
> - dbus_send_system_bus(postfix_smtp_t)
> - dbus_system_bus_client(postfix_smtp_t)
> - init_dbus_chat(postfix_smtp_t)
> + dbus_system_bus_client(postfix_smtpd_t)
> + init_dbus_chat(postfix_smtpd_t)
> ')
>
> optional_policy(`
Please use systemd_use_nss() instead of the individual dbus and init rules.
--
Chris PeBenito
prev parent reply other threads:[~2022-02-16 15:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-16 13:11 [PATCH] init dbus patch for GetDynamicUsers Russell Coker
2022-02-16 15:46 ` Chris PeBenito [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6947f06f-6a39-e6da-eac3-68e06ebb2ec4@linux.microsoft.com \
--to=chpebeni@linux.microsoft.com \
--cc=russell@coker.com.au \
--cc=selinux-refpolicy@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.