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/kernel/
Date: Sun, 10 Sep 2017 14:03:57
Message-Id: 1505047799.f17aea4c3e4b4c9848d7fe4132cf8652ba3f58a6.perfinion@gentoo
1 commit: f17aea4c3e4b4c9848d7fe4132cf8652ba3f58a6
2 Author: Jason Zaman <jason <AT> perfinion <DOT> com>
3 AuthorDate: Sun Sep 10 12:49:59 2017 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 10 12:49:59 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=f17aea4c
7
8 files: Allow files_*_etc_files to map files
9
10 policy/modules/kernel/files.if | 3 +++
11 1 file changed, 3 insertions(+)
12
13 diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if
14 index 7a15f1dd..f2b76f86 100644
15 --- a/policy/modules/kernel/files.if
16 +++ b/policy/modules/kernel/files.if
17 @@ -2920,6 +2920,7 @@ interface(`files_read_etc_files',`
18 ')
19
20 allow $1 etc_t:dir list_dir_perms;
21 + allow $1 etc_t:file map;
22 read_files_pattern($1, etc_t, etc_t)
23 read_lnk_files_pattern($1, etc_t, etc_t)
24 ')
25 @@ -2959,6 +2960,7 @@ interface(`files_rw_etc_files',`
26 ')
27
28 allow $1 etc_t:dir list_dir_perms;
29 + allow $1 etc_t:file map;
30 rw_files_pattern($1, etc_t, etc_t)
31 read_lnk_files_pattern($1, etc_t, etc_t)
32 ')
33 @@ -2980,6 +2982,7 @@ interface(`files_manage_etc_files',`
34 type etc_t;
35 ')
36
37 + allow $1 etc_t:file map;
38 manage_files_pattern($1, etc_t, etc_t)
39 read_lnk_files_pattern($1, etc_t, etc_t)
40 ')