1 |
commit: 02533322fa1a4030098ff54a3480b2fa7d362a8c |
2 |
Author: Chris PeBenito <pebenito <AT> ieee <DOT> org> |
3 |
AuthorDate: Sun Dec 18 22:42:39 2016 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 1 16:26:28 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=02533322 |
7 |
|
8 |
rtkit: enable dbus chat with xdm |
9 |
|
10 |
Enable dbus messaging between the X Display Manager (XDM) and |
11 |
the rtkit daemon. |
12 |
|
13 |
Also, let the rtkit daemon set the priority of the X Display |
14 |
Manager (XDM). |
15 |
|
16 |
This patch (along with parts 3/5 and 4/5) might be needed when |
17 |
running gdm. |
18 |
|
19 |
I do apologize for the broken interface in the previous version |
20 |
of this patch. |
21 |
|
22 |
Signed-off-by: Guido Trentalancia <guido <AT> trentalancia.net> |
23 |
|
24 |
policy/modules/services/xserver.if | 20 +++++++++++++++++++- |
25 |
1 file changed, 19 insertions(+), 1 deletion(-) |
26 |
|
27 |
diff --git a/policy/modules/services/xserver.if b/policy/modules/services/xserver.if |
28 |
index 3b55a08..bebc419 100644 |
29 |
--- a/policy/modules/services/xserver.if |
30 |
+++ b/policy/modules/services/xserver.if |
31 |
@@ -162,7 +162,6 @@ interface(`xserver_role',` |
32 |
manage_files_pattern($2, user_fonts_config_t, user_fonts_config_t) |
33 |
relabel_dirs_pattern($2, user_fonts_config_t, user_fonts_config_t) |
34 |
relabel_files_pattern($2, user_fonts_config_t, user_fonts_config_t) |
35 |
- |
36 |
') |
37 |
|
38 |
####################################### |
39 |
@@ -1350,3 +1349,22 @@ interface(`xserver_unconfined',` |
40 |
typeattribute $1 x_domain; |
41 |
typeattribute $1 xserver_unconfined_type; |
42 |
') |
43 |
+ |
44 |
+######################################## |
45 |
+## <summary> |
46 |
+## Set the priority of the X Display |
47 |
+## Manager (XDM). |
48 |
+## </summary> |
49 |
+## <param name="domain"> |
50 |
+## <summary> |
51 |
+## Domain allowed access. |
52 |
+## </summary> |
53 |
+## </param> |
54 |
+# |
55 |
+interface(`xserver_setsched_xdm',` |
56 |
+ gen_require(` |
57 |
+ type xdm_t; |
58 |
+ ') |
59 |
+ |
60 |
+ allow $1 xdm_t:process setsched; |
61 |
+') |