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 E3BD7138332 for ; Sun, 18 Feb 2018 11:30:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C18DE09C4; Sun, 18 Feb 2018 11:30:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 E83ACE09C4 for ; Sun, 18 Feb 2018 11:30:48 +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 B40A8335C2C for ; Sun, 18 Feb 2018 11:30:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 47AB6215 for ; Sun, 18 Feb 2018 11:30:46 +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: <1518952770.8fdebd557db3d293e40ef47be7cbff315576beab.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/dictd.te policy/modules/contrib/dpkg.if policy/modules/contrib/dpkg.te policy/modules/contrib/logrotate.te policy/modules/contrib/tor.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 8fdebd557db3d293e40ef47be7cbff315576beab X-VCS-Branch: master Date: Sun, 18 Feb 2018 11:30:46 +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: ff52060c-2c60-443a-8ec1-3bb3fbd7a331 X-Archives-Hash: 1808df1f7e60edd61856affd128933a4 commit: 8fdebd557db3d293e40ef47be7cbff315576beab Author: Chris PeBenito ieee org> AuthorDate: Thu Feb 15 22:09:45 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Feb 18 11:19:30 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=8fdebd55 Simple map patch from Russell Coker. policy/modules/contrib/dictd.te | 3 ++- policy/modules/contrib/dpkg.if | 18 ++++++++++++++++++ policy/modules/contrib/dpkg.te | 2 +- policy/modules/contrib/logrotate.te | 3 ++- policy/modules/contrib/tor.te | 2 +- 5 files changed, 24 insertions(+), 4 deletions(-) diff --git a/policy/modules/contrib/dictd.te b/policy/modules/contrib/dictd.te index acf5c932..6cad541b 100644 --- a/policy/modules/contrib/dictd.te +++ b/policy/modules/contrib/dictd.te @@ -1,4 +1,4 @@ -policy_module(dictd, 1.11.0) +policy_module(dictd, 1.11.1) ######################################## # @@ -57,6 +57,7 @@ dev_read_sysfs(dictd_t) domain_use_interactive_fds(dictd_t) +files_map_usr_files(dictd_t) files_read_etc_runtime_files(dictd_t) files_read_usr_files(dictd_t) files_search_var_lib(dictd_t) diff --git a/policy/modules/contrib/dpkg.if b/policy/modules/contrib/dpkg.if index c753ad62..a5e88d6f 100644 --- a/policy/modules/contrib/dpkg.if +++ b/policy/modules/contrib/dpkg.if @@ -301,3 +301,21 @@ interface(`dpkg_manage_script_tmp_files',` allow $1 dpkg_script_tmp_t:dir manage_dir_perms; allow $1 dpkg_script_tmp_t:file manage_file_perms; ') + +######################################## +## +## map dpkg_script_tmp_t files +## +## +## +## Domain allowed access. +## +## +# +interface(`dpkg_map_script_tmp_files',` + gen_require(` + type dpkg_script_tmp_t; + ') + + allow $1 dpkg_script_tmp_t:file map; +') diff --git a/policy/modules/contrib/dpkg.te b/policy/modules/contrib/dpkg.te index 0ff59b94..e7747bc7 100644 --- a/policy/modules/contrib/dpkg.te +++ b/policy/modules/contrib/dpkg.te @@ -1,4 +1,4 @@ -policy_module(dpkg, 1.12.0) +policy_module(dpkg, 1.12.1) ######################################## # diff --git a/policy/modules/contrib/logrotate.te b/policy/modules/contrib/logrotate.te index 4bb9da7b..2490cdfa 100644 --- a/policy/modules/contrib/logrotate.te +++ b/policy/modules/contrib/logrotate.te @@ -1,4 +1,4 @@ -policy_module(logrotate, 1.20.0) +policy_module(logrotate, 1.20.1) ######################################## # @@ -77,6 +77,7 @@ domain_use_interactive_fds(logrotate_t) domain_getattr_all_entry_files(logrotate_t) domain_read_all_domains_state(logrotate_t) +files_map_etc_files(logrotate_t) files_read_usr_files(logrotate_t) files_read_etc_runtime_files(logrotate_t) files_read_all_pids(logrotate_t) diff --git a/policy/modules/contrib/tor.te b/policy/modules/contrib/tor.te index 990ea8c4..8029630f 100644 --- a/policy/modules/contrib/tor.te +++ b/policy/modules/contrib/tor.te @@ -1,4 +1,4 @@ -policy_module(tor, 1.14.0) +policy_module(tor, 1.14.1) ######################################## #