Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/
Date: Sun, 30 Apr 2017 09:33:12
Message-Id: 1493543807.007a597180bcd449f400cb15130deca3dae61738.perfinion@gentoo
1 commit: 007a597180bcd449f400cb15130deca3dae61738
2 Author: Guido Trentalancia <guido <AT> trentalancia <DOT> net>
3 AuthorDate: Wed Apr 19 13:37:16 2017 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 30 09:16:47 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=007a5971
7
8 Gnome and Evolution dbus chat permissions
9
10 This patch adds assorted permission to chat over dbus needed
11 for the correct functioning of Gnome and Evolution.
12
13 The second version, simply removes an extra "#" prefix from
14 the comments.
15
16 This third version, rebases the patch so that it applies to
17 the most recent git tree (thanks to Christopher PeBenito and
18 Russell Coker for pointing that out).
19
20 Signed-off-by: Guido Trentalancia <guido <AT> trentalancia.net>
21
22 policy/modules/contrib/evolution.te | 4 ++++
23 policy/modules/contrib/gnome.if | 37 +++++++++++++++++++++++++++++++++++++
24 2 files changed, 41 insertions(+)
25
26 diff --git a/policy/modules/contrib/evolution.te b/policy/modules/contrib/evolution.te
27 index bd1647f2..579c21a6 100644
28 --- a/policy/modules/contrib/evolution.te
29 +++ b/policy/modules/contrib/evolution.te
30 @@ -345,6 +345,10 @@ tunable_policy(`use_samba_home_dirs',`
31 optional_policy(`
32 dbus_all_session_bus_client(evolution_alarm_t)
33 dbus_connect_all_session_bus(evolution_alarm_t)
34 +
35 + optional_policy(`
36 + evolution_dbus_chat(evolution_alarm_t)
37 + ')
38 ')
39
40 optional_policy(`
41
42 diff --git a/policy/modules/contrib/gnome.if b/policy/modules/contrib/gnome.if
43 index 7ea2cf40..ce436cfd 100644
44 --- a/policy/modules/contrib/gnome.if
45 +++ b/policy/modules/contrib/gnome.if
46 @@ -112,8 +112,17 @@ template(`gnome_role_template',`
47 dbus_spec_session_domain($1, $1_gkeyringd_t, gkeyringd_exec_t)
48
49 optional_policy(`
50 + evolution_dbus_chat($1_gkeyringd_t)
51 + ')
52 +
53 + optional_policy(`
54 + gnome_dbus_chat_gconfd($3)
55 gnome_dbus_chat_gkeyringd($1, $3)
56 ')
57 +
58 + optional_policy(`
59 + wm_dbus_chat($1, $1_gkeyringd_t)
60 + ')
61 ')
62
63 ifdef(`distro_gentoo',`
64 @@ -690,6 +699,34 @@ interface(`gnome_read_keyring_home_files',`
65 ########################################
66 ## <summary>
67 ## Send and receive messages from
68 +## gnome configuration daemon over
69 +## dbus.
70 +## </summary>
71 +## <param name="role_prefix">
72 +## <summary>
73 +## The prefix of the user domain (e.g., user
74 +## is the prefix for user_t).
75 +## </summary>
76 +## </param>
77 +## <param name="domain">
78 +## <summary>
79 +## Domain allowed access.
80 +## </summary>
81 +## </param>
82 +#
83 +interface(`gnome_dbus_chat_gconfd',`
84 + gen_require(`
85 + type gconfd_t;
86 + class dbus send_msg;
87 + ')
88 +
89 + allow $1 gconfd_t:dbus send_msg;
90 + allow gconfd_t $1:dbus send_msg;
91 +')
92 +
93 +########################################
94 +## <summary>
95 +## Send and receive messages from
96 ## gnome keyring daemon over dbus.
97 ## </summary>
98 ## <param name="role_prefix">