1 |
commit: 7ee3081a194697c1ebcecff0c40290fa0f498267 |
2 |
Author: Antoine Tenart <antoine.tenart <AT> bootlin <DOT> com> |
3 |
AuthorDate: Fri Sep 18 14:29:41 2020 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 21:14:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=7ee3081a |
7 |
|
8 |
systemd: allow systemd-network to get attributes of fs |
9 |
|
10 |
Fixes: |
11 |
|
12 |
avc: denied { getattr } for pid=57 comm="systemd-network" name="/" |
13 |
dev="vda" ino=2 scontext=system_u:system_r:systemd_networkd_t |
14 |
tcontext=system_u:object_r:fs_t tclass=filesystem permissive=0 |
15 |
|
16 |
Signed-off-by: Antoine Tenart <antoine.tenart <AT> bootlin.com> |
17 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
18 |
|
19 |
policy/modules/system/systemd.te | 1 + |
20 |
1 file changed, 1 insertion(+) |
21 |
|
22 |
diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te |
23 |
index eb6f782f..f58ad97d 100644 |
24 |
--- a/policy/modules/system/systemd.te |
25 |
+++ b/policy/modules/system/systemd.te |
26 |
@@ -785,6 +785,7 @@ dev_write_kmsg(systemd_networkd_t) |
27 |
files_read_etc_files(systemd_networkd_t) |
28 |
files_watch_runtime_dirs(systemd_networkd_t) |
29 |
files_watch_root_dirs(systemd_networkd_t) |
30 |
+fs_getattr_xattr_fs(systemd_networkd_t) |
31 |
|
32 |
auth_use_nsswitch(systemd_networkd_t) |