From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.77) (envelope-from ) id 1SrAd4-0006bP-Es for garchives@archives.gentoo.org; Tue, 17 Jul 2012 16:28:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C27C2E05D7; Tue, 17 Jul 2012 16:27:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 959E0E05D7 for ; Tue, 17 Jul 2012 16:27:58 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E89361B4035 for ; Tue, 17 Jul 2012 16:27:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id ACC87E543C for ; Tue, 17 Jul 2012 16:27:56 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1342542461.d4f3c6a1af878661b5d4c1d2a86da929d89eb33e.SwifT@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.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: d4f3c6a1af878661b5d4c1d2a86da929d89eb33e X-VCS-Branch: master Date: Tue, 17 Jul 2012 16:27:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 42d056fe-09f6-41de-bad1-c1c2fdf22b5a X-Archives-Hash: 2c3d7654ee2bfd5a861d4c436c54b06f commit: d4f3c6a1af878661b5d4c1d2a86da929d89eb33e Author: Sven Vermeulen siphos be> AuthorDate: Tue Jul 17 16:27:41 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Tue Jul 17 16:27:41 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/hardened-refp= olicy.git;a=3Dcommit;h=3Dd4f3c6a1 Allow dhcpc to create (/var)/run/dhcpc --- policy/modules/system/sysnetwork.te | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/policy/modules/system/sysnetwork.te b/policy/modules/system/= sysnetwork.te index b2467f5..db76550 100644 --- a/policy/modules/system/sysnetwork.te +++ b/policy/modules/system/sysnetwork.te @@ -65,7 +65,10 @@ filetrans_pattern(dhcpc_t, dhcp_state_t, dhcpc_state_t= , file) =20 # create pid file manage_files_pattern(dhcpc_t, dhcpc_var_run_t, dhcpc_var_run_t) -files_pid_filetrans(dhcpc_t, dhcpc_var_run_t, file) +manage_dirs_pattern(dhcpc_t, dhcpc_var_run_t, dhcpc_var_run_t) +# Create /var/run/dhcpc directory (state directory), needed for /run/dhc= pc +# Gets done through the dhcpcd-hooks +files_pid_filetrans(dhcpc_t, dhcpc_var_run_t, { file dir }) =20 # Allow read/write to /etc/resolv.conf and /etc/ntp.conf. Note that any = files # in /etc created by dhcpcd will be labelled net_conf_t.