1 |
commit: aa318c0ec7e586ed427bb60e1ce5eb9d59b33717 |
2 |
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
3 |
AuthorDate: Tue Aug 26 15:26:24 2014 +0000 |
4 |
Commit: Jason Zaman <gentoo <AT> perfinion <DOT> com> |
5 |
CommitDate: Tue Aug 26 15:26:24 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=aa318c0e |
7 |
|
8 |
Add read privs to system_dbusd_var_lib_t files for system dbus clients |
9 |
|
10 |
--- |
11 |
policy/modules/contrib/dbus.if | 5 +++++ |
12 |
1 file changed, 5 insertions(+) |
13 |
|
14 |
diff --git a/policy/modules/contrib/dbus.if b/policy/modules/contrib/dbus.if |
15 |
index 21e8b5c..077dabc 100644 |
16 |
--- a/policy/modules/contrib/dbus.if |
17 |
+++ b/policy/modules/contrib/dbus.if |
18 |
@@ -126,6 +126,11 @@ interface(`dbus_system_bus_client',` |
19 |
stream_connect_pattern($1, system_dbusd_var_run_t, system_dbusd_var_run_t, system_dbusd_t) |
20 |
|
21 |
dbus_read_config($1) |
22 |
+ |
23 |
+ ifdef(`distro_gentoo',` |
24 |
+ # The /var/lib/dbus/machine-id file is a link to /etc/machine-id |
25 |
+ read_lnk_files_pattern($1, system_dbusd_var_lib_t, system_dbusd_var_lib_t) |
26 |
+ ') |
27 |
') |
28 |
|
29 |
####################################### |