From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7892913877A for ; Sat, 9 Aug 2014 11:57:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D016EE08E6; Sat, 9 Aug 2014 11:57:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5D02CE08BE for ; Sat, 9 Aug 2014 11:57:02 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 342D03402E3 for ; Sat, 9 Aug 2014 11:57:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id E2E1C18815 for ; Sat, 9 Aug 2014 11:56:59 +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: <1407508971.bb44da60efc9fca1377a3270f67da79aafa2b820.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:testing 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: bb44da60efc9fca1377a3270f67da79aafa2b820 X-VCS-Branch: testing Date: Sat, 9 Aug 2014 11:56:59 +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: 54e6b233-ae91-461b-805e-88f5fb6905df X-Archives-Hash: 31c74c2cf737f91e9f214c7d059a07fa commit: bb44da60efc9fca1377a3270f67da79aafa2b820 Author: Sven Vermeulen siphos be> AuthorDate: Fri Aug 8 14:42:31 2014 +0000 Commit: Jason Zaman perfinion com> CommitDate: Fri Aug 8 14:42:51 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=bb44da60 Introduce init_relabelto_script_state --- policy/modules/system/init.if | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index 6a01568..ab4b450 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -1892,3 +1892,22 @@ interface(`init_read_script_status_files',` read_files_pattern($1, initrc_state_t, initrc_state_t) ') + +######################################### +## +## Label to init script status files +## +## +## +## Domain allowed access +## +## +# +interface(`init_relabelto_script_state',` + gen_require(` + type initrc_state_t; + ') + + relabelto_files_pattern($1, initrc_state_t, initrc_state_t) + relabelto_dirs_pattern($1, initrc_state_t, initrc_state_t) +')