Re: [PATCH] init dbus patch for GetDynamicUsers with systemd_use_nss()
Chris PeBenito <[email protected]> Thu, 17 Feb 2022 08:37:58 -0500
| Newsgroups | org.kernel.vger.selinux-refpolicy |
|---|---|
| Message-ID | <[email protected]> |
On 2/17/22 03:54, Russell Coker wrote: > As requested changed this patch to use systemd_use_nss(). I think it's > ready to merge. Please create patches using git master as the baseline. This patch doesn't apply. > Signed-off-by: Russell Coker <[email protected]> > > 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(` -- Chris PeBenito