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 B3EC3139694 for ; Sat, 25 Feb 2017 16:58:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0428CE0D5F; Sat, 25 Feb 2017 16:58:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D66B6E0D5F for ; Sat, 25 Feb 2017 16:58:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C8C75340FDA for ; Sat, 25 Feb 2017 16:58:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9243D544D for ; Sat, 25 Feb 2017 16:58:00 +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: <1488040991.be5ad6588778385c9353e1b6ca9fcc5f4b149148.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: be5ad6588778385c9353e1b6ca9fcc5f4b149148 X-VCS-Branch: master Date: Sat, 25 Feb 2017 16:58:00 +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: 329e3f79-7cfc-4bb2-8688-f97423b6b67d X-Archives-Hash: 843af70cbf1730546873ac3a8f1ac5d7 commit: be5ad6588778385c9353e1b6ca9fcc5f4b149148 Author: Russell Coker coker com au> AuthorDate: Fri Feb 24 06:22:42 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Feb 25 16:43:11 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=be5ad658 new init interfaces for systemd These are needed by several patches I'm about to send. Description: some new interfaces for init/systemd Author: Russell Coker coker.com.au> Last-Update: 2017-02-24 policy/modules/system/init.if | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index 162ce266..2230df01 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -1135,6 +1135,24 @@ interface(`init_var_lib_filetrans',` filetrans_pattern($1, init_var_lib_t, $2, $3, $4) ') +###################################### +## +## Allow search directory in the /run/systemd directory. +## +## +## +## Domain allowed access. +## +## +# +interface(`init_search_pid_dirs',` + gen_require(` + type init_var_run_t; + ') + + allow $1 init_var_run_t:dir search_dir_perms; +') + ######################################## ## ## Create files in an init PID directory. @@ -2271,6 +2289,24 @@ interface(`init_rw_script_tmp_files',` ######################################## ## +## Read and write init script inherited temporary data. +## +## +## +## Domain allowed access. +## +## +# +interface(`init_rw_inherited_script_tmp_files',` + gen_require(` + type initrc_tmp_t; + ') + + allow $1 initrc_tmp_t:file rw_inherited_file_perms; +') + +######################################## +## ## Create files in a init script ## temporary data directory. ## 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 A4F6F139694 for ; Sat, 25 Feb 2017 16:58:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EDB88E0D6F; Sat, 25 Feb 2017 16:58:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CA52CE0D6F for ; Sat, 25 Feb 2017 16:58:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D50B63415B7 for ; Sat, 25 Feb 2017 16:58:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 522695456 for ; Sat, 25 Feb 2017 16:58:01 +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: <1488040991.be5ad6588778385c9353e1b6ca9fcc5f4b149148.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: be5ad6588778385c9353e1b6ca9fcc5f4b149148 X-VCS-Branch: next Date: Sat, 25 Feb 2017 16:58:01 +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: d5cc5911-41e0-4eb9-bfd7-f0b9e779d6b4 X-Archives-Hash: 45d46d4f76ef138863fe45b73d8914f0 Message-ID: <20170225165801.tA4RZhxaT17CAwKSlonn5TbPU4Q0WrpvQSx9KSb_jXk@z> commit: be5ad6588778385c9353e1b6ca9fcc5f4b149148 Author: Russell Coker coker com au> AuthorDate: Fri Feb 24 06:22:42 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Feb 25 16:43:11 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=be5ad658 new init interfaces for systemd These are needed by several patches I'm about to send. Description: some new interfaces for init/systemd Author: Russell Coker coker.com.au> Last-Update: 2017-02-24 policy/modules/system/init.if | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index 162ce266..2230df01 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -1135,6 +1135,24 @@ interface(`init_var_lib_filetrans',` filetrans_pattern($1, init_var_lib_t, $2, $3, $4) ') +###################################### +## +## Allow search directory in the /run/systemd directory. +## +## +## +## Domain allowed access. +## +## +# +interface(`init_search_pid_dirs',` + gen_require(` + type init_var_run_t; + ') + + allow $1 init_var_run_t:dir search_dir_perms; +') + ######################################## ## ## Create files in an init PID directory. @@ -2271,6 +2289,24 @@ interface(`init_rw_script_tmp_files',` ######################################## ## +## Read and write init script inherited temporary data. +## +## +## +## Domain allowed access. +## +## +# +interface(`init_rw_inherited_script_tmp_files',` + gen_require(` + type initrc_tmp_t; + ') + + allow $1 initrc_tmp_t:file rw_inherited_file_perms; +') + +######################################## +## ## Create files in a init script ## temporary data directory. ##