1 |
commit: ebfa09de178fd10f0b853b65548a255aaa3a777f |
2 |
Author: Jason Zaman <jason <AT> perfinion <DOT> com> |
3 |
AuthorDate: Sat Jun 20 12:11:18 2015 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 2 17:07:04 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ebfa09de |
7 |
|
8 |
consolekit: needs to be able to chown dev nodes |
9 |
|
10 |
policy/modules/contrib/consolekit.te | 9 +++++++++ |
11 |
1 file changed, 9 insertions(+) |
12 |
|
13 |
diff --git a/policy/modules/contrib/consolekit.te b/policy/modules/contrib/consolekit.te |
14 |
index 050c5c5..a7506c1 100644 |
15 |
--- a/policy/modules/contrib/consolekit.te |
16 |
+++ b/policy/modules/contrib/consolekit.te |
17 |
@@ -147,3 +147,12 @@ optional_policy(` |
18 |
optional_policy(` |
19 |
unconfined_stream_connect(consolekit_t) |
20 |
') |
21 |
+ |
22 |
+ifdef(`distro_gentoo',` |
23 |
+ # consolekit needs to be able to chown /dev nodes when logging in |
24 |
+ dev_setattr_all_chr_files(consolekit_t) |
25 |
+ |
26 |
+ optional_policy(` |
27 |
+ udev_read_pid_files(consolekit_t) |
28 |
+ ') |
29 |
+') |