1 |
commit: a8cb98adc8518f860b25d7afb7fe35886db3c763 |
2 |
Author: Antoine Tenart <antoine.tenart <AT> bootlin <DOT> com> |
3 |
AuthorDate: Mon Sep 21 14:13:02 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=a8cb98ad |
7 |
|
8 |
dbus: allow clients to list runtime dirs and named sockets |
9 |
|
10 |
Fixes: |
11 |
|
12 |
avc: denied { read } for pid=77 comm="systemd-resolve" name="dbus" |
13 |
dev="tmpfs" ino=2748 scontext=system_u:system_r:systemd_resolved_t |
14 |
tcontext=system_u:object_r:system_dbusd_runtime_t tclass=dir |
15 |
permissive=1 |
16 |
|
17 |
avc: denied { read } for pid=77 comm="systemd-resolve" |
18 |
name="system_bus_socket" dev="tmpfs" ino=2765 |
19 |
scontext=system_u:system_r:systemd_resolved_t |
20 |
tcontext=system_u:object_r:system_dbusd_runtime_t tclass=sock_file |
21 |
permissive=1 |
22 |
|
23 |
avc: denied { read } for pid=59 comm="systemd-network" name="dbus" |
24 |
dev="tmpfs" ino=2777 scontext=system_u:system_r:systemd_networkd_t |
25 |
tcontext=system_u:object_r:system_dbusd_runtime_t tclass=dir |
26 |
permissive=1 |
27 |
|
28 |
avc: denied { read } for pid=59 comm="systemd-network" |
29 |
name="system_bus_socket" dev="tmpfs" ino=2791 |
30 |
scontext=system_u:system_r:systemd_networkd_t |
31 |
tcontext=system_u:object_r:system_dbusd_runtime_t tclass=sock_file |
32 |
permissive=1 |
33 |
|
34 |
Signed-off-by: Antoine Tenart <antoine.tenart <AT> bootlin.com> |
35 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
36 |
|
37 |
policy/modules/services/dbus.if | 2 ++ |
38 |
1 file changed, 2 insertions(+) |
39 |
|
40 |
diff --git a/policy/modules/services/dbus.if b/policy/modules/services/dbus.if |
41 |
index 13675aaf..540147c7 100644 |
42 |
--- a/policy/modules/services/dbus.if |
43 |
+++ b/policy/modules/services/dbus.if |
44 |
@@ -149,6 +149,8 @@ interface(`dbus_system_bus_client',` |
45 |
stream_connect_pattern($1, system_dbusd_runtime_t, system_dbusd_runtime_t, system_dbusd_t) |
46 |
|
47 |
dbus_read_config($1) |
48 |
+ dbus_list_system_bus_runtime($1) |
49 |
+ dbus_read_system_bus_runtime_named_sockets($1) |
50 |
|
51 |
ifdef(`distro_gentoo',` |
52 |
# The /var/lib/dbus/machine-id file is a link to /etc/machine-id |