Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/system/
Date: Thu, 17 Dec 2015 18:52:28
Message-Id: 1450378316.77e1231041b150b0180a556504e30cbdcd8fdfb7.perfinion@gentoo
1 commit: 77e1231041b150b0180a556504e30cbdcd8fdfb7
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:51:56 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=77e12310
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 +')