From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A3466138334 for ; Sat, 9 Jun 2018 05:24:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82782E0900; Sat, 9 Jun 2018 05:24:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5ACD4E0900 for ; Sat, 9 Jun 2018 05:24:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B5715335CB5 for ; Sat, 9 Jun 2018 05:24:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D75AE2CD for ; Sat, 9 Jun 2018 05:24:52 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1528456746.15024f09418e364b25ab3ba1b3c202d41b6bacd3.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/portage.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 15024f09418e364b25ab3ba1b3c202d41b6bacd3 X-VCS-Branch: master Date: Sat, 9 Jun 2018 05:24:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: eeeb6987-3c52-4961-b53d-acafbeed3dfa X-Archives-Hash: 30b20540f1af0f64cf8ada111a439c3b commit: 15024f09418e364b25ab3ba1b3c202d41b6bacd3 Author: Jason Zaman perfinion com> AuthorDate: Fri Jun 8 11:09:13 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Fri Jun 8 11:19:06 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=15024f09 portage: allow gpg for tree signature verification policy/modules/contrib/portage.te | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/policy/modules/contrib/portage.te b/policy/modules/contrib/portage.te index e0aea54c..47d7fcc6 100644 --- a/policy/modules/contrib/portage.te +++ b/policy/modules/contrib/portage.te @@ -227,6 +227,10 @@ optional_policy(` cron_system_entry(portage_fetch_t, portage_fetch_exec_t) ') +optional_policy(` + gpg_spec_domtrans(portage_t, portage_fetch_t) +') + optional_policy(` modutils_run(portage_t, portage_roles) #dontaudit update_modules_t portage_tmp_t:dir search_dir_perms; @@ -253,7 +257,7 @@ allow portage_fetch_t self:process signal; allow portage_fetch_t self:capability { chown dac_read_search dac_override fowner fsetid }; allow portage_fetch_t self:fifo_file rw_fifo_file_perms; allow portage_fetch_t self:tcp_socket { accept listen }; -allow portage_fetch_t self:unix_stream_socket create_socket_perms; +allow portage_fetch_t self:unix_stream_socket { connectto create_stream_socket_perms }; allow portage_fetch_t portage_conf_t:dir list_dir_perms; @@ -264,6 +268,7 @@ allow portage_fetch_t portage_gpg_t:file manage_file_perms; allow portage_fetch_t portage_tmp_t:dir manage_dir_perms; allow portage_fetch_t portage_tmp_t:file manage_file_perms; +allow portage_fetch_t portage_tmp_t:sock_file manage_sock_file_perms; read_files_pattern(portage_fetch_t, portage_conf_t, portage_conf_t) @@ -300,8 +305,10 @@ corenet_tcp_connect_all_reserved_ports(portage_fetch_t) corenet_tcp_connect_generic_port(portage_fetch_t) # bug 540056 corenet_tcp_connect_all_unreserved_ports(portage_fetch_t) +corenet_udp_bind_generic_node(portage_fetch_t) +corenet_udp_bind_all_unreserved_ports(portage_fetch_t) -dev_dontaudit_read_rand(portage_fetch_t) +dev_read_rand(portage_fetch_t) domain_use_interactive_fds(portage_fetch_t) @@ -344,7 +351,13 @@ tunable_policy(`portage_read_user_content',` ') optional_policy(` + gpg_entry_type(portage_fetch_t) gpg_exec(portage_fetch_t) + gpg_exec_agent(portage_fetch_t) +') + +optional_policy(` + dirmngr_exec(portage_fetch_t) ') ##########################################