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/support/
Date: Tue, 11 Sep 2018 09:06:50
Message-Id: 1536462466.9af310973e98ba11a5d0efde091cd68753a7b734.perfinion@gentoo
1 commit: 9af310973e98ba11a5d0efde091cd68753a7b734
2 Author: Lukas Vrabec <lvrabec <AT> redhat <DOT> com>
3 AuthorDate: Thu Jul 19 22:17:27 2018 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 9 03:07:46 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=9af31097
7
8 Improve domain_transition_pattern to allow mmap entrypoint bin file.
9
10 In domain_transition_pattern there is rule:
11 allow $1 $2:file { getattr open read execute };
12
13 map permission is missing here, which is generating lot of AVC.
14 Replacing permissions with mmap_exec_file_perms set.
15
16 policy/support/misc_patterns.spt | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/policy/support/misc_patterns.spt b/policy/support/misc_patterns.spt
20 index 26a86dda..2cfa0313 100644
21 --- a/policy/support/misc_patterns.spt
22 +++ b/policy/support/misc_patterns.spt
23 @@ -7,7 +7,7 @@
24 # 3. target domain
25 #
26 define(`domain_transition_pattern',`
27 - allow $1 $2:file { getattr open read execute };
28 + allow $1 $2:file { mmap_exec_file_perms };
29 allow $1 $3:process transition;
30 dontaudit $1 $3:process { noatsecure siginh rlimitinh };
31 ')