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 3B79115808B for ; Thu, 31 Mar 2022 03:31:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C817FE081A; Thu, 31 Mar 2022 03:31:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 86E67E07C7 for ; Thu, 31 Mar 2022 03:31:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 DD2CF3414E5 for ; Thu, 31 Mar 2022 03:31:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4182A37F for ; Thu, 31 Mar 2022 03:31:24 +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: <1648694453.b92a94a5433397a83d36847cbd4b8ce677e1e607.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/systemd.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: b92a94a5433397a83d36847cbd4b8ce677e1e607 X-VCS-Branch: master Date: Thu, 31 Mar 2022 03:31:24 +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: cc1416a9-6af0-4656-94ad-481e62c67c29 X-Archives-Hash: 7f4ae170b4a190b8450ae0a874a8dd6e commit: b92a94a5433397a83d36847cbd4b8ce677e1e607 Author: Kenton Groombridge concord sh> AuthorDate: Sat Nov 13 21:17:53 2021 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu Mar 31 02:40:53 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=b92a94a5 systemd: add support for systemd-resolved stubs When using systemd-resolved, the recommended configuration is to symlink /etc/resolv.conf to one of the stub files in /run/systemd/resolve. To support this, daemons that can read net_conf_t must be able to search the init runtime and read etc_t symlinks. Allow this access if systemd is enabled. Signed-off-by: Kenton Groombridge concord.sh> Signed-off-by: Jason Zaman gentoo.org> policy/modules/system/systemd.if | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if index e68a9b44..fc000ef9 100644 --- a/policy/modules/system/systemd.if +++ b/policy/modules/system/systemd.if @@ -2164,6 +2164,10 @@ interface(`systemd_read_resolved_runtime',` type systemd_resolved_runtime_t; ') + # to read the systemd-resolved stub + files_read_etc_symlinks($1) + + init_search_runtime($1) read_files_pattern($1, systemd_resolved_runtime_t, systemd_resolved_runtime_t) ')