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 95124158041 for ; Sun, 5 Sep 2021 16:00:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C001E086A; Sun, 5 Sep 2021 16:00:21 +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 580C8E0869 for ; Sun, 5 Sep 2021 16:00:21 +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 74BDF340B29 for ; Sun, 5 Sep 2021 16:00:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B4D4DE7 for ; Sun, 5 Sep 2021 16:00:16 +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: <1630852004.97fef06309db4270e3979d056b138e77f9494935.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/ifplugd.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 97fef06309db4270e3979d056b138e77f9494935 X-VCS-Branch: master Date: Sun, 5 Sep 2021 16:00:16 +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: da487b49-f811-4b6e-bb87-b618ee46e4a5 X-Archives-Hash: 152d4fdaa3198caabe80002ebd07fcc9 commit: 97fef06309db4270e3979d056b138e77f9494935 Author: Fabrice Fontaine gmail com> AuthorDate: Mon Aug 9 20:51:46 2021 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Sep 5 14:26:44 2021 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=97fef063 policy/modules/services/ifplugd.te: make netutils optional Make netutils optional to avoid the following build failure: Compiling targeted policy.30 env LD_LIBRARY_PATH="/tmp/instance-3/output-1/host/lib:/tmp/instance-3/output-1/host/usr/lib" /tmp/instance-3/output-1/host/usr/bin/checkpolicy -c 30 -U deny -S -O -E policy.conf -o policy.30 policy/modules/services/ifplugd.te:62:ERROR 'type netutils_exec_t is not within scope' at token ';' on line 73694: #line 62 allow ifplugd_t netutils_exec_t:file { getattr open map read execute ioctl }; checkpolicy: error(s) encountered while parsing configuration Fixes: - http://autobuild.buildroot.org/results/1e27f5b193d40dfb7c73fbe15d1bef91cb92c27d Signed-off-by: Fabrice Fontaine gmail.com> Signed-off-by: Jason Zaman gentoo.org> policy/modules/services/ifplugd.te | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/policy/modules/services/ifplugd.te b/policy/modules/services/ifplugd.te index f49b147f..550eecca 100644 --- a/policy/modules/services/ifplugd.te +++ b/policy/modules/services/ifplugd.te @@ -59,8 +59,6 @@ logging_send_syslog_msg(ifplugd_t) miscfiles_read_localization(ifplugd_t) -netutils_domtrans(ifplugd_t) - sysnet_domtrans_ifconfig(ifplugd_t) sysnet_domtrans_dhcpc(ifplugd_t) sysnet_delete_dhcpc_runtime_files(ifplugd_t) @@ -70,3 +68,7 @@ sysnet_signal_dhcpc(ifplugd_t) optional_policy(` consoletype_exec(ifplugd_t) ') + +optional_policy(` + netutils_domtrans(ifplugd_t) +')