1 |
commit: 8e6b99973ad02847bd3c1c6176c2d6b8dc0be32c |
2 |
Author: Jason Zaman <jason <AT> perfinion <DOT> com> |
3 |
AuthorDate: Thu Dec 17 18:15:37 2015 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 17 18:46:19 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=8e6b9997 |
7 |
|
8 |
introduce mount_rw_pipes interface |
9 |
|
10 |
policy/modules/system/mount.if | 20 ++++++++++++++++++++ |
11 |
1 file changed, 20 insertions(+) |
12 |
|
13 |
diff --git a/policy/modules/system/mount.if b/policy/modules/system/mount.if |
14 |
index 8a2105b..279f6d7 100644 |
15 |
--- a/policy/modules/system/mount.if |
16 |
+++ b/policy/modules/system/mount.if |
17 |
@@ -209,3 +209,23 @@ interface(`mount_rw_loopback_files',` |
18 |
|
19 |
allow $1 mount_loopback_t:file rw_file_perms; |
20 |
') |
21 |
+ |
22 |
+# gentoo specific under here |
23 |
+ |
24 |
+######################################## |
25 |
+## <summary> |
26 |
+## Read and write mount unnamed pipes |
27 |
+## </summary> |
28 |
+## <param name="domain"> |
29 |
+## <summary> |
30 |
+## Domain allowed access. |
31 |
+## </summary> |
32 |
+## </param> |
33 |
+# |
34 |
+interface(`mount_rw_pipes',` |
35 |
+ gen_require(` |
36 |
+ type mount_t; |
37 |
+ ') |
38 |
+ |
39 |
+ allow $1 mount_t:fifo_file rw_fifo_file_perms; |
40 |
+') |