1 |
commit: a5eb286b975246977f37efd4e25a48b647170aa9 |
2 |
Author: Guido Trentalancia <guido <AT> trentalancia <DOT> net> |
3 |
AuthorDate: Sun Dec 18 20:01:56 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=a5eb286b |
7 |
|
8 |
udev: manage tmpfs files and directories |
9 |
|
10 |
Update the udev module so that the udev domain can manage tmpfs files |
11 |
and directories. |
12 |
|
13 |
Thanks to Christian Göttsche for pointing out that this only applies |
14 |
to systems not using systemd (v2). |
15 |
|
16 |
Signed-off-by: Guido Trentalancia <guido <AT> trentalancia.net> |
17 |
|
18 |
policy/modules/system/udev.te | 3 +++ |
19 |
1 file changed, 3 insertions(+) |
20 |
|
21 |
diff --git a/policy/modules/system/udev.te b/policy/modules/system/udev.te |
22 |
index cbce9f2..a774e61 100644 |
23 |
--- a/policy/modules/system/udev.te |
24 |
+++ b/policy/modules/system/udev.te |
25 |
@@ -229,6 +229,9 @@ ifdef(`init_systemd',` |
26 |
init_dgram_send(udev_t) |
27 |
|
28 |
systemd_read_logind_pids(udev_t) |
29 |
+',` |
30 |
+ fs_manage_tmpfs_dirs(udev_t) |
31 |
+ fs_manage_tmpfs_files(udev_t) |
32 |
') |
33 |
|
34 |
optional_policy(` |