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 D166413835A for ; Mon, 1 Feb 2021 02:10:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 916E3E09BD; Mon, 1 Feb 2021 02:10:13 +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 78F64E09BD for ; Mon, 1 Feb 2021 02:10:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 E9BD234108B for ; Mon, 1 Feb 2021 02:10:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7530A4BC for ; Mon, 1 Feb 2021 02:10:09 +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: <1612142502.bf4b1f16a4f6a0b415d77ea028996cdadefde3e2.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/services/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/aptcacher.if policy/modules/services/cron.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: bf4b1f16a4f6a0b415d77ea028996cdadefde3e2 X-VCS-Branch: master Date: Mon, 1 Feb 2021 02:10:09 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 897fc574-dc8c-4d42-bd3d-222cd64c292a X-Archives-Hash: 467de7a64dd858f02094bcbe2bd47fbc commit: bf4b1f16a4f6a0b415d77ea028996cdadefde3e2 Author: Chris PeBenito ieee org> AuthorDate: Thu Jan 28 19:57:08 2021 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Feb 1 01:21:42 2021 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=bf4b1f16 aptcacher: Drop broken config interfaces. The aptcacher_etc_t type does not exist in the policy. The block in cron will never be enabled because of this, so drop that too. Signed-off-by: Chris PeBenito ieee.org> Signed-off-by: Jason Zaman gentoo.org> policy/modules/services/aptcacher.if | 40 ------------------------------------ policy/modules/services/cron.te | 5 ----- 2 files changed, 45 deletions(-) diff --git a/policy/modules/services/aptcacher.if b/policy/modules/services/aptcacher.if index 8c99a699..12c1335a 100644 --- a/policy/modules/services/aptcacher.if +++ b/policy/modules/services/aptcacher.if @@ -63,43 +63,3 @@ interface(`aptcacher_stream_connect',` files_search_runtime($1) stream_connect_pattern($1, aptcacher_runtime_t, aptcacher_runtime_t, aptcacher_t) ') - -###################################### -## -## read aptcacher config -## -## -## -## Domain allowed to read it. -## -## -# -interface(`aptcacher_read_config',` - gen_require(` - type aptcacher_etc_t; - ') - - files_search_etc($1) - allow $1 aptcacher_etc_t:dir list_dir_perms; - allow $1 aptcacher_etc_t:file read_file_perms; -') - -###################################### -## -## mmap and read aptcacher config -## -## -## -## Domain allowed to read it. -## -## -# -interface(`aptcacher_mmap_read_config',` - gen_require(` - type aptcacher_etc_t; - ') - - files_search_etc($1) - allow $1 aptcacher_etc_t:dir list_dir_perms; - allow $1 aptcacher_etc_t:file mmap_read_file_perms; -') diff --git a/policy/modules/services/cron.te b/policy/modules/services/cron.te index 23e990ad..712a84dd 100644 --- a/policy/modules/services/cron.te +++ b/policy/modules/services/cron.te @@ -344,11 +344,6 @@ ifdef(`distro_debian',` dpkg_manage_db(system_cronjob_t) ') - optional_policy(` - aptcacher_mmap_read_config(system_cronjob_t) - corenet_tcp_connect_aptcacher_port(system_cronjob_t) - ') - optional_policy(` logwatch_search_cache_dir(crond_t) ')