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/contrib/
Date: Sun, 29 Oct 2017 20:43:12
Message-Id: 1509285448.a0fdf53ebd17756a85e551a25a99acfd64c9fdd6.perfinion@gentoo
1 commit: a0fdf53ebd17756a85e551a25a99acfd64c9fdd6
2 Author: Amadeusz Sławiński <amade <AT> asmblr <DOT> net>
3 AuthorDate: Wed Oct 18 08:42:26 2017 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 29 13:57:28 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=a0fdf53e
7
8 allow dac_read_search for portage_fetch_t
9
10 it already has dac_override allowed, so it just quiets denial
11
12 Signed-off-by: Amadeusz Sławiński <amade <AT> asmblr.net>
13
14 policy/modules/contrib/portage.te | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/policy/modules/contrib/portage.te b/policy/modules/contrib/portage.te
18 index 5d58b326..5905d4dc 100644
19 --- a/policy/modules/contrib/portage.te
20 +++ b/policy/modules/contrib/portage.te
21 @@ -251,7 +251,7 @@ dontaudit portage_t device_type:blk_file read_blk_file_perms;
22 #
23
24 allow portage_fetch_t self:process signal;
25 -allow portage_fetch_t self:capability { chown dac_override fowner fsetid };
26 +allow portage_fetch_t self:capability { chown dac_read_search dac_override fowner fsetid };
27 allow portage_fetch_t self:fifo_file rw_fifo_file_perms;
28 allow portage_fetch_t self:tcp_socket { accept listen };
29 allow portage_fetch_t self:unix_stream_socket create_socket_perms;