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: Fri, 18 Dec 2015 04:14:41
Message-Id: 1450411949.0460b12a0cbc61b25ebcbf20f283534cc49b98f5.perfinion@gentoo
1 commit: 0460b12a0cbc61b25ebcbf20f283534cc49b98f5
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: Fri Dec 18 04:12:29 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0460b12a
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 +')