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 C98FC138ACF for ; Mon, 9 Feb 2015 09:58:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 662FCE0986; Mon, 9 Feb 2015 09:58:34 +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 E1550E098F for ; Mon, 9 Feb 2015 09:58:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 95ED93402A2 for ; Mon, 9 Feb 2015 09:58:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 43DCC11626 for ; Mon, 9 Feb 2015 09:58:31 +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: <1423475658.0897e2ba7152ef4752b2fb292fe9bde72b88b465.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:adminroles 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: 0897e2ba7152ef4752b2fb292fe9bde72b88b465 X-VCS-Branch: adminroles Date: Mon, 9 Feb 2015 09:58:31 +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: 2bd2a341-bf5f-44c1-8197-f0efdef3a4cd X-Archives-Hash: 01dfe292c525243eecfa5c5fb820dbe3 commit: 0897e2ba7152ef4752b2fb292fe9bde72b88b465 Author: Jason Zaman perfinion com> AuthorDate: Mon Feb 9 09:20:21 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Feb 9 09:54:18 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=0897e2ba add back the working parts of commit fe62598f2fb87 --- policy/modules/system/init.if | 74 ++++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index 7cdf3a8..1f897d2 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -150,39 +150,6 @@ interface(`init_ranged_domain',` ######################################## ## -## Mark the file type as a daemon pid file, allowing initrc_t -## to create it -## -## -## -## Type to mark as a daemon pid file -## -## -## -## -## Class on which the type is applied -## -## -## -## -## Filename of the file that the init script creates -## -## -# -interface(`init_daemon_pid_file',` - gen_require(` - attribute daemonpidfile; - type initrc_t; - ') - - typeattribute $1 daemonpidfile; - - files_pid_file($1) - files_pid_filetrans(initrc_t, $1, $2, $3) -') - -######################################## -## ## Create a domain for long running processes ## (daemons/services) which are started by init scripts. ## @@ -421,16 +388,50 @@ interface(`init_ranged_system_domain',` ######################################## ## -## Mark the type as a daemon run dir +## Mark the file type as a daemon pid file, allowing initrc_t +## to create it ## -## +## +## +## Type to mark as a daemon pid file +## +## +## +## +## Class on which the type is applied +## +## +## +## +## Filename of the file that the init script creates +## +## +# +interface(`init_daemon_pid_file',` + gen_require(` + attribute daemonpidfile; + type initrc_t; + ') + + typeattribute $1 daemonpidfile; + + files_pid_file($1) + files_pid_filetrans(initrc_t, $1, $2, $3) +') + +######################################## +## +## Mark the file type as a daemon run dir, allowing initrc_t +## to create it +## +## ## ## Type to mark as a daemon run dir ## ## ## ## -## Name of the run dir directory +## Filename of the directory that the init script creates ## ## # @@ -882,6 +883,7 @@ interface(`init_domtrans_script',` gen_require(` type rc_exec_t; ') + domtrans_pattern($1, rc_exec_t, initrc_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 2C6CC138ACF for ; Mon, 9 Feb 2015 18:33:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7F798E08E9; Mon, 9 Feb 2015 18:33:05 +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 F167DE08E8 for ; Mon, 9 Feb 2015 18:33:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C062F3407D7 for ; Mon, 9 Feb 2015 18:33:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6B2CE1168D for ; Mon, 9 Feb 2015 18:33:02 +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: <1423475658.0897e2ba7152ef4752b2fb292fe9bde72b88b465.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: 0897e2ba7152ef4752b2fb292fe9bde72b88b465 X-VCS-Branch: master Date: Mon, 9 Feb 2015 18:33:02 +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: ae49fb55-dbeb-4a27-b90f-001fd4231914 X-Archives-Hash: 3420ea2705648e975ccb1b18d510d377 Message-ID: <20150209183302.mV3LEAN3RmAOJUdIH5Ht3TpoS4D84iztO7M7AtRWSbk@z> commit: 0897e2ba7152ef4752b2fb292fe9bde72b88b465 Author: Jason Zaman perfinion com> AuthorDate: Mon Feb 9 09:20:21 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Feb 9 09:54:18 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=0897e2ba add back the working parts of commit fe62598f2fb87 --- policy/modules/system/init.if | 74 ++++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index 7cdf3a8..1f897d2 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -150,39 +150,6 @@ interface(`init_ranged_domain',` ######################################## ## -## Mark the file type as a daemon pid file, allowing initrc_t -## to create it -## -## -## -## Type to mark as a daemon pid file -## -## -## -## -## Class on which the type is applied -## -## -## -## -## Filename of the file that the init script creates -## -## -# -interface(`init_daemon_pid_file',` - gen_require(` - attribute daemonpidfile; - type initrc_t; - ') - - typeattribute $1 daemonpidfile; - - files_pid_file($1) - files_pid_filetrans(initrc_t, $1, $2, $3) -') - -######################################## -## ## Create a domain for long running processes ## (daemons/services) which are started by init scripts. ## @@ -421,16 +388,50 @@ interface(`init_ranged_system_domain',` ######################################## ## -## Mark the type as a daemon run dir +## Mark the file type as a daemon pid file, allowing initrc_t +## to create it ## -## +## +## +## Type to mark as a daemon pid file +## +## +## +## +## Class on which the type is applied +## +## +## +## +## Filename of the file that the init script creates +## +## +# +interface(`init_daemon_pid_file',` + gen_require(` + attribute daemonpidfile; + type initrc_t; + ') + + typeattribute $1 daemonpidfile; + + files_pid_file($1) + files_pid_filetrans(initrc_t, $1, $2, $3) +') + +######################################## +## +## Mark the file type as a daemon run dir, allowing initrc_t +## to create it +## +## ## ## Type to mark as a daemon run dir ## ## ## ## -## Name of the run dir directory +## Filename of the directory that the init script creates ## ## # @@ -882,6 +883,7 @@ interface(`init_domtrans_script',` gen_require(` type rc_exec_t; ') + domtrans_pattern($1, rc_exec_t, initrc_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 2CF19138ACF for ; Mon, 9 Feb 2015 09:55:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 185D4E097B; Mon, 9 Feb 2015 09:55:24 +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 6EF18E097B for ; Mon, 9 Feb 2015 09:55:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2E421340619 for ; Mon, 9 Feb 2015 09:55:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D1F3C11625 for ; Mon, 9 Feb 2015 09:55:20 +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: <1423475658.0897e2ba7152ef4752b2fb292fe9bde72b88b465.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next 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: 0897e2ba7152ef4752b2fb292fe9bde72b88b465 X-VCS-Branch: next Date: Mon, 9 Feb 2015 09:55:20 +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: 0fdcb4dd-d162-4b56-9dfa-6c9ab5a1d584 X-Archives-Hash: 998d49c452dbebe5f343f33d3a736463 Message-ID: <20150209095520.3FWeqf_logdQy-mOQSQKVpn9k6LTab02YsghsENknsw@z> commit: 0897e2ba7152ef4752b2fb292fe9bde72b88b465 Author: Jason Zaman perfinion com> AuthorDate: Mon Feb 9 09:20:21 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Feb 9 09:54:18 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=0897e2ba add back the working parts of commit fe62598f2fb87 --- policy/modules/system/init.if | 74 ++++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index 7cdf3a8..1f897d2 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -150,39 +150,6 @@ interface(`init_ranged_domain',` ######################################## ## -## Mark the file type as a daemon pid file, allowing initrc_t -## to create it -## -## -## -## Type to mark as a daemon pid file -## -## -## -## -## Class on which the type is applied -## -## -## -## -## Filename of the file that the init script creates -## -## -# -interface(`init_daemon_pid_file',` - gen_require(` - attribute daemonpidfile; - type initrc_t; - ') - - typeattribute $1 daemonpidfile; - - files_pid_file($1) - files_pid_filetrans(initrc_t, $1, $2, $3) -') - -######################################## -## ## Create a domain for long running processes ## (daemons/services) which are started by init scripts. ## @@ -421,16 +388,50 @@ interface(`init_ranged_system_domain',` ######################################## ## -## Mark the type as a daemon run dir +## Mark the file type as a daemon pid file, allowing initrc_t +## to create it ## -## +## +## +## Type to mark as a daemon pid file +## +## +## +## +## Class on which the type is applied +## +## +## +## +## Filename of the file that the init script creates +## +## +# +interface(`init_daemon_pid_file',` + gen_require(` + attribute daemonpidfile; + type initrc_t; + ') + + typeattribute $1 daemonpidfile; + + files_pid_file($1) + files_pid_filetrans(initrc_t, $1, $2, $3) +') + +######################################## +## +## Mark the file type as a daemon run dir, allowing initrc_t +## to create it +## +## ## ## Type to mark as a daemon run dir ## ## ## ## -## Name of the run dir directory +## Filename of the directory that the init script creates ## ## # @@ -882,6 +883,7 @@ interface(`init_domtrans_script',` gen_require(` type rc_exec_t; ') + domtrans_pattern($1, rc_exec_t, initrc_t) ') ')