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 A66CF138334 for ; Sat, 13 Jul 2019 07:01:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77364E0819; Sat, 13 Jul 2019 07:01:18 +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 5D758E081A for ; Sat, 13 Jul 2019 07:01:18 +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 D180C347900 for ; Sat, 13 Jul 2019 07:01:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B39D2703 for ; Sat, 13 Jul 2019 07:01:13 +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: <1563000194.5c6a954b4abbc2f65ebebbfa363f6a287cfe122d.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/init.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 5c6a954b4abbc2f65ebebbfa363f6a287cfe122d X-VCS-Branch: master Date: Sat, 13 Jul 2019 07:01:13 +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: 555546d9-f711-40b4-ad67-cb7839ed38a1 X-Archives-Hash: 3a3edde9044268f6da3d4459d76a72e2 commit: 5c6a954b4abbc2f65ebebbfa363f6a287cfe122d Author: Chris PeBenito microsoft com> AuthorDate: Tue May 28 15:13:32 2019 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Jul 13 06:43:14 2019 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=5c6a954b init: Add systemd block to init_script_domain(). Signed-off-by: Chris PeBenito microsoft.com> Signed-off-by: Jason Zaman perfinion.com> policy/modules/system/init.if | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index 2a928ca7..411c5cc8 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -99,6 +99,12 @@ interface(`init_script_domain',` role system_r types $1; domtrans_pattern(init_run_all_scripts_domain, $2, $1) + + ifdef(`init_systemd',` + allow $1 init_t:unix_stream_socket { getattr read write ioctl }; + + allow init_t $1:process2 { nnp_transition nosuid_transition }; + ') ') ########################################