1 |
commit: 96b25ec181556bbae727bb32714c6d4438f6ce67 |
2 |
Author: Russell Coker <russell <AT> coker <DOT> com <DOT> au> |
3 |
AuthorDate: Thu Feb 17 14:47:40 2022 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 31 02:40:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=96b25ec1 |
7 |
|
8 |
init dbus patch for GetDynamicUsers with systemd_use_nss() V2 |
9 |
|
10 |
Same as before but moved to the top of my patch list so it will apply to the |
11 |
git policy. |
12 |
|
13 |
Should be ready to merge now. |
14 |
|
15 |
Signed-off-by: Russell Coker <russell <AT> coker.com.au> |
16 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
17 |
|
18 |
policy/modules/services/dictd.te | 3 +++ |
19 |
policy/modules/services/postfix.te | 18 ++++++++++-------- |
20 |
2 files changed, 13 insertions(+), 8 deletions(-) |
21 |
|
22 |
diff --git a/policy/modules/services/dictd.te b/policy/modules/services/dictd.te |
23 |
index a6bc5336..a286f7de 100644 |
24 |
--- a/policy/modules/services/dictd.te |
25 |
+++ b/policy/modules/services/dictd.te |
26 |
@@ -79,3 +79,6 @@ optional_policy(` |
27 |
seutil_sigchld_newrole(dictd_t) |
28 |
') |
29 |
|
30 |
+ifdef(`init_systemd',` |
31 |
+ systemd_use_nss(dictd_t) |
32 |
+') |
33 |
|
34 |
diff --git a/policy/modules/services/postfix.te b/policy/modules/services/postfix.te |
35 |
index 5c324bc7..0f865b00 100644 |
36 |
--- a/policy/modules/services/postfix.te |
37 |
+++ b/policy/modules/services/postfix.te |
38 |
@@ -374,11 +374,7 @@ manage_files_pattern(postfix_bounce_t, postfix_spool_bounce_t, postfix_spool_bou |
39 |
manage_lnk_files_pattern(postfix_bounce_t, postfix_spool_bounce_t, postfix_spool_bounce_t) |
40 |
|
41 |
optional_policy(` |
42 |
- init_dbus_chat(postfix_bounce_t) |
43 |
-') |
44 |
- |
45 |
-optional_policy(` |
46 |
- dbus_system_bus_client(postfix_bounce_t) |
47 |
+ systemd_use_nss(postfix_bounce_t) |
48 |
') |
49 |
|
50 |
######################################## |
51 |
@@ -765,6 +761,10 @@ optional_policy(` |
52 |
cyrus_stream_connect(postfix_smtp_t) |
53 |
') |
54 |
|
55 |
+optional_policy(` |
56 |
+ systemd_use_nss(postfix_smtp_t) |
57 |
+') |
58 |
+ |
59 |
optional_policy(` |
60 |
dovecot_stream_connect(postfix_smtp_t) |
61 |
') |
62 |
@@ -773,6 +773,10 @@ optional_policy(` |
63 |
milter_stream_connect_all(postfix_smtp_t) |
64 |
') |
65 |
|
66 |
+optional_policy(` |
67 |
+ systemd_use_nss(postfix_showq_t) |
68 |
+') |
69 |
+ |
70 |
######################################## |
71 |
# |
72 |
# Smtpd local policy |
73 |
@@ -803,9 +807,7 @@ optional_policy(` |
74 |
') |
75 |
|
76 |
optional_policy(` |
77 |
- dbus_send_system_bus(postfix_smtp_t) |
78 |
- dbus_system_bus_client(postfix_smtp_t) |
79 |
- init_dbus_chat(postfix_smtp_t) |
80 |
+ systemd_use_nss(postfix_smtpd_t) |
81 |
') |
82 |
|
83 |
optional_policy(` |