From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1061371-garchives=archives.gentoo.org@lists.gentoo.org> 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 32B0E138335 for <garchives@archives.gentoo.org>; Sun, 9 Dec 2018 11:49:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 10B8FE0916; Sun, 9 Dec 2018 11:49:03 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 C17BAE090E for <gentoo-commits@lists.gentoo.org>; Sun, 9 Dec 2018 11:49:01 +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 A8289335CA6 for <gentoo-commits@lists.gentoo.org>; Sun, 9 Dec 2018 11:48:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B34934E0 for <gentoo-commits@lists.gentoo.org>; Sun, 9 Dec 2018 11:48:57 +0000 (UTC) From: "Jason Zaman" <perfinion@gentoo.org> 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" <perfinion@gentoo.org> Message-ID: <1542538607.e90c8ba7ec87789c618bdac926e0af6baf3da89c.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 policy/modules/system/unconfined.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: e90c8ba7ec87789c618bdac926e0af6baf3da89c X-VCS-Branch: master Date: Sun, 9 Dec 2018 11:48:57 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 57f63bc4-972b-4156-bfec-3de2e97a3623 X-Archives-Hash: 536212ea8e8ad6b8d2167c5313785cf1 commit: e90c8ba7ec87789c618bdac926e0af6baf3da89c Author: Laurent Bigonville <bigon <AT> bigon <DOT> be> AuthorDate: Sun Nov 11 12:33:28 2018 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Sun Nov 18 10:56:47 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e90c8ba7 Allow sysnet_dns_name_resolve() to use resolved to resolve DNS names Also allow unconfined_t to talk with the resolved daemon Signed-off-by: Jason Zaman <jason <AT> perfinion.com> policy/modules/system/sysnetwork.if | 11 ++++++++--- policy/modules/system/unconfined.te | 6 ++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/policy/modules/system/sysnetwork.if b/policy/modules/system/sysnetwork.if index f4f17a5d..15fc046c 100644 --- a/policy/modules/system/sysnetwork.if +++ b/policy/modules/system/sysnetwork.if @@ -756,9 +756,14 @@ interface(`sysnet_dns_name_resolve',` nscd_use($1) ') - # This seems needed when the mymachines NSS module is used - optional_policy(` - systemd_read_machines($1) + ifdef(`init_systemd',` + optional_policy(` + systemd_dbus_chat_resolved($1) + ') + # This seems needed when the mymachines NSS module is used + optional_policy(` + systemd_read_machines($1) + ') ') ') diff --git a/policy/modules/system/unconfined.te b/policy/modules/system/unconfined.te index d669ff16..b981fa85 100644 --- a/policy/modules/system/unconfined.te +++ b/policy/modules/system/unconfined.te @@ -58,6 +58,12 @@ ifdef(`direct_sysadm_daemon',` ') ') +ifdef(`init_systemd',` + optional_policy(` + systemd_dbus_chat_resolved(unconfined_t) + ') +') + optional_policy(` ada_domtrans(unconfined_t) ')