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 1505313877A for ; Fri, 8 Aug 2014 15:27:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AB468E0A41; Fri, 8 Aug 2014 15:27:45 +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 307A4E0A41 for ; Fri, 8 Aug 2014 15:27:45 +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 547803402C0 for ; Fri, 8 Aug 2014 15:27:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 621C018810 for ; Fri, 8 Aug 2014 15:27:42 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1407508971.bb44da60efc9fca1377a3270f67da79aafa2b820.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/init.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: bb44da60efc9fca1377a3270f67da79aafa2b820 X-VCS-Branch: master Date: Fri, 8 Aug 2014 15:27:42 +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: 4e19e916-6fc3-4fc6-9e22-f65b82b5740e X-Archives-Hash: 01f03db7ad9b1234e4afa67880bad8cb commit: bb44da60efc9fca1377a3270f67da79aafa2b820 Author: Sven Vermeulen siphos be> AuthorDate: Fri Aug 8 14:42:31 2014 +0000 Commit: Sven Vermeulen gentoo org> 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) +') 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 793301393DD for ; Fri, 8 Aug 2014 14:50:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4176CE09F4; Fri, 8 Aug 2014 14:50:01 +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 BD7F4E09F4 for ; Fri, 8 Aug 2014 14:50:00 +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 941C53402B9 for ; Fri, 8 Aug 2014 14:49:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 4E27318810 for ; Fri, 8 Aug 2014 14:49:58 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1407508971.bb44da60efc9fca1377a3270f67da79aafa2b820.swift@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: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: bb44da60efc9fca1377a3270f67da79aafa2b820 X-VCS-Branch: testing Date: Fri, 8 Aug 2014 14:49:58 +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: 961ac15f-34bb-4db1-bf67-09991651b725 X-Archives-Hash: f29175e4e06a4afd0b3cc97485975cd3 Message-ID: <20140808144958.o4uEObeN_B1f0Has1Qf5NiYhOJUvzEMTpwYdt640g0I@z> commit: bb44da60efc9fca1377a3270f67da79aafa2b820 Author: Sven Vermeulen siphos be> AuthorDate: Fri Aug 8 14:42:31 2014 +0000 Commit: Sven Vermeulen gentoo org> 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) +')