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 82480138806 for ; Tue, 12 Dec 2017 07:59:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85B05E0F78; Tue, 12 Dec 2017 07:59:14 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 5ACDCE0F79 for ; Tue, 12 Dec 2017 07:59:14 +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 98CE033D4A6 for ; Tue, 12 Dec 2017 07:59:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 32A3AAE7A for ; Tue, 12 Dec 2017 07:59:12 +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: <1513062386.cd882d60b804d24d79c12313a4e6f67c92af0485.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/sysnetwork.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: cd882d60b804d24d79c12313a4e6f67c92af0485 X-VCS-Branch: master Date: Tue, 12 Dec 2017 07:59:12 +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: 64ce4739-f1ea-4419-a869-dd642e041522 X-Archives-Hash: 963724be2bb2cec74bf012d72c11de09 commit: cd882d60b804d24d79c12313a4e6f67c92af0485 Author: Laurent Bigonville bigon be> AuthorDate: Wed Dec 6 17:06:03 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Tue Dec 12 07:06:26 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=cd882d60 Allow domains using sysnet_dns_name_resolve() interface to access NSS mymachines files If the machine is using the mymachine NSS module, the domain doing DNS resolution should be able to access files under /run/systemd/machines/ policy/modules/system/sysnetwork.if | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/policy/modules/system/sysnetwork.if b/policy/modules/system/sysnetwork.if index a20a2d46..53c806a5 100644 --- a/policy/modules/system/sysnetwork.if +++ b/policy/modules/system/sysnetwork.if @@ -751,6 +751,11 @@ interface(`sysnet_dns_name_resolve',` optional_policy(` nscd_use($1) ') + + # This seems needed when the mymachines NSS module is used + optional_policy(` + systemd_read_machines($1) + ') ') ########################################