1 |
commit: d47a85f8cabba8dbde87875d61a500a55bbd663e |
2 |
Author: Jason Zaman <jason <AT> perfinion <DOT> com> |
3 |
AuthorDate: Tue Dec 2 11:14:38 2014 +0000 |
4 |
Commit: Jason Zaman <gentoo <AT> perfinion <DOT> com> |
5 |
CommitDate: Tue Dec 2 14:16:55 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=d47a85f8 |
7 |
|
8 |
Add missing roles interfaces |
9 |
|
10 |
Some interfaces were missing from staff_r and user_r, this adds them in |
11 |
|
12 |
--- |
13 |
policy/modules/roles/staff.te | 16 ++++++++++++++++ |
14 |
policy/modules/roles/unprivuser.te | 16 ++++++++++++++++ |
15 |
2 files changed, 32 insertions(+) |
16 |
|
17 |
diff --git a/policy/modules/roles/staff.te b/policy/modules/roles/staff.te |
18 |
index 1d4b3e0..1a867f0 100644 |
19 |
--- a/policy/modules/roles/staff.te |
20 |
+++ b/policy/modules/roles/staff.te |
21 |
@@ -188,6 +188,14 @@ ifndef(`distro_redhat',` |
22 |
ifdef(`distro_gentoo',` |
23 |
|
24 |
optional_policy(` |
25 |
+ android_role(staff_r, staff_t) |
26 |
+ ') |
27 |
+ |
28 |
+ optional_policy(` |
29 |
+ at_role(staff_r, staff_t) |
30 |
+ ') |
31 |
+ |
32 |
+ optional_policy(` |
33 |
chromium_role(staff_r, staff_t) |
34 |
') |
35 |
|
36 |
@@ -230,4 +238,12 @@ ifdef(`distro_gentoo',` |
37 |
optional_policy(` |
38 |
skype_role(staff_r, staff_t) |
39 |
') |
40 |
+ |
41 |
+ optional_policy(` |
42 |
+ wine_role(staff_r, staff_t) |
43 |
+ ') |
44 |
+ |
45 |
+ optional_policy(` |
46 |
+ xscreensaver_role(staff_r, staff_t) |
47 |
+ ') |
48 |
') |
49 |
|
50 |
diff --git a/policy/modules/roles/unprivuser.te b/policy/modules/roles/unprivuser.te |
51 |
index c171833..e349a03 100644 |
52 |
--- a/policy/modules/roles/unprivuser.te |
53 |
+++ b/policy/modules/roles/unprivuser.te |
54 |
@@ -173,6 +173,14 @@ ifndef(`distro_redhat',` |
55 |
ifdef(`distro_gentoo',` |
56 |
|
57 |
optional_policy(` |
58 |
+ android_role(user_r, user_t) |
59 |
+ ') |
60 |
+ |
61 |
+ optional_policy(` |
62 |
+ at_role(user_r, user_t) |
63 |
+ ') |
64 |
+ |
65 |
+ optional_policy(` |
66 |
chromium_role(user_r, user_t) |
67 |
') |
68 |
|
69 |
@@ -211,4 +219,12 @@ ifdef(`distro_gentoo',` |
70 |
optional_policy(` |
71 |
skype_role(user_r, user_t) |
72 |
') |
73 |
+ |
74 |
+ optional_policy(` |
75 |
+ wine_role(user_r, user_t) |
76 |
+ ') |
77 |
+ |
78 |
+ optional_policy(` |
79 |
+ xscreensaver_role(user_r, user_t) |
80 |
+ ') |
81 |
') |