Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/kernel/
Date: Sun, 10 Feb 2019 04:14:50
Message-Id: 1549771885.136b8a2b8c1ea3bb501b668de7401e01a87e780b.perfinion@gentoo
1 commit: 136b8a2b8c1ea3bb501b668de7401e01a87e780b
2 Author: Jason Zaman <jason <AT> perfinion <DOT> com>
3 AuthorDate: Sat Jan 12 08:03:41 2019 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 10 04:11:25 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=136b8a2b
7
8 files: introduce files_dontaudit_read_etc_files
9
10 Signed-off-by: Jason Zaman <jason <AT> perfinion.com>
11
12 policy/modules/kernel/files.if | 19 +++++++++++++++++++
13 1 file changed, 19 insertions(+)
14
15 diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if
16 index 4920809d..0ace4966 100644
17 --- a/policy/modules/kernel/files.if
18 +++ b/policy/modules/kernel/files.if
19 @@ -3405,6 +3405,25 @@ interface(`files_dontaudit_read_etc_runtime_files',`
20 dontaudit $1 etc_runtime_t:file { getattr read };
21 ')
22
23 +########################################
24 +## <summary>
25 +## Do not audit attempts to read files
26 +## in /etc
27 +## </summary>
28 +## <param name="domain">
29 +## <summary>
30 +## Domain to not audit.
31 +## </summary>
32 +## </param>
33 +#
34 +interface(`files_dontaudit_read_etc_files',`
35 + gen_require(`
36 + type etc_t;
37 + ')
38 +
39 + dontaudit $1 etc_t:file { getattr read };
40 +')
41 +
42 ########################################
43 ## <summary>
44 ## Do not audit attempts to write