1 |
commit: bfbc6bd14be977d19cadd03be8e1ed57b9568496 |
2 |
Author: Jason Zaman <jason <AT> perfinion <DOT> com> |
3 |
AuthorDate: Sun Sep 10 12:49:14 2017 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 10 12:49:14 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=bfbc6bd1 |
7 |
|
8 |
Introduce userdom_map_user_tmpfs_files interface |
9 |
|
10 |
policy/modules/system/userdomain.if | 18 ++++++++++++++++++ |
11 |
1 file changed, 18 insertions(+) |
12 |
|
13 |
diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if |
14 |
index cc019898..88704b71 100644 |
15 |
--- a/policy/modules/system/userdomain.if |
16 |
+++ b/policy/modules/system/userdomain.if |
17 |
@@ -3212,6 +3212,24 @@ interface(`userdom_rw_user_tmpfs_files',` |
18 |
|
19 |
######################################## |
20 |
## <summary> |
21 |
+## Map user tmpfs files. |
22 |
+## </summary> |
23 |
+## <param name="domain"> |
24 |
+## <summary> |
25 |
+## Domain allowed access. |
26 |
+## </summary> |
27 |
+## </param> |
28 |
+# |
29 |
+interface(`userdom_map_user_tmpfs_files',` |
30 |
+ gen_require(` |
31 |
+ type user_tmpfs_t; |
32 |
+ ') |
33 |
+ |
34 |
+ allow $1 user_tmpfs_t:file map; |
35 |
+') |
36 |
+ |
37 |
+######################################## |
38 |
+## <summary> |
39 |
## Delete user tmpfs files. |
40 |
## </summary> |
41 |
## <param name="domain"> |