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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D41B7158086 for ; Thu, 11 Nov 2021 21:27:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 557CE2BC16A; Thu, 11 Nov 2021 21:27:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 33D5A2BC16A for ; Thu, 11 Nov 2021 21:27:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7F11A3430FB for ; Thu, 11 Nov 2021 21:27:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 219EB1E2 for ; Thu, 11 Nov 2021 21:27:37 +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: <1636666010.e1e9dd3440862901e12b6a5bf5206f4939bf75e0.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/bind.fc policy/modules/services/bind.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: e1e9dd3440862901e12b6a5bf5206f4939bf75e0 X-VCS-Branch: master Date: Thu, 11 Nov 2021 21:27:37 +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: 6e96fecc-fd39-48b8-aa84-c59ce0ec8742 X-Archives-Hash: 062e999a95afe26597d30077e34f97f9 commit: e1e9dd3440862901e12b6a5bf5206f4939bf75e0 Author: Kenton Groombridge concord sh> AuthorDate: Sun Nov 7 01:46:08 2021 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu Nov 11 21:26:50 2021 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e1e9dd34 bind: fixes for unbound Unbound maintains a copy of the root key in /etc/unbound/cache and needs to be able to manage it. Signed-off-by: Kenton Groombridge concord.sh> Signed-off-by: Jason Zaman gentoo.org> policy/modules/services/bind.fc | 1 + policy/modules/services/bind.te | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/policy/modules/services/bind.fc b/policy/modules/services/bind.fc index 585103eb..04d402cf 100644 --- a/policy/modules/services/bind.fc +++ b/policy/modules/services/bind.fc @@ -15,6 +15,7 @@ /etc/rndc\.key -- gen_context(system_u:object_r:dnssec_t,s0) /etc/unbound(/.*)? gen_context(system_u:object_r:named_conf_t,s0) /etc/unbound/.*\.key -- gen_context(system_u:object_r:dnssec_t,s0) +/etc/unbound/cache(/.*)? gen_context(system_u:object_r:dnssec_t,s0) /usr/bin/lwresd -- gen_context(system_u:object_r:named_exec_t,s0) /usr/bin/named -- gen_context(system_u:object_r:named_exec_t,s0) diff --git a/policy/modules/services/bind.te b/policy/modules/services/bind.te index 623437e9..0081ed52 100644 --- a/policy/modules/services/bind.te +++ b/policy/modules/services/bind.te @@ -81,7 +81,8 @@ allow named_t self:fifo_file rw_fifo_file_perms; allow named_t self:unix_stream_socket { accept listen }; allow named_t self:tcp_socket { accept listen }; -allow named_t dnssec_t:file read_file_perms; +allow named_t dnssec_t:file manage_file_perms; +filetrans_pattern(named_t, named_conf_t, dnssec_t, dir, "cache") allow named_t named_conf_t:dir list_dir_perms; read_files_pattern(named_t, named_conf_t, named_conf_t)