1 |
commit: cd882d60b804d24d79c12313a4e6f67c92af0485 |
2 |
Author: Laurent Bigonville <bigon <AT> bigon <DOT> be> |
3 |
AuthorDate: Wed Dec 6 17:06:03 2017 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 12 07:06:26 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=cd882d60 |
7 |
|
8 |
Allow domains using sysnet_dns_name_resolve() interface to access NSS mymachines files |
9 |
|
10 |
If the machine is using the mymachine NSS module, the domain doing DNS |
11 |
resolution should be able to access files under /run/systemd/machines/ |
12 |
|
13 |
policy/modules/system/sysnetwork.if | 5 +++++ |
14 |
1 file changed, 5 insertions(+) |
15 |
|
16 |
diff --git a/policy/modules/system/sysnetwork.if b/policy/modules/system/sysnetwork.if |
17 |
index a20a2d46..53c806a5 100644 |
18 |
--- a/policy/modules/system/sysnetwork.if |
19 |
+++ b/policy/modules/system/sysnetwork.if |
20 |
@@ -751,6 +751,11 @@ interface(`sysnet_dns_name_resolve',` |
21 |
optional_policy(` |
22 |
nscd_use($1) |
23 |
') |
24 |
+ |
25 |
+ # This seems needed when the mymachines NSS module is used |
26 |
+ optional_policy(` |
27 |
+ systemd_read_machines($1) |
28 |
+ ') |
29 |
') |
30 |
|
31 |
######################################## |