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 B843F139083 for ; Sat, 25 Feb 2017 14:59:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 23246E0C9D; Sat, 25 Feb 2017 14:59:41 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 F0AD5E0C9D for ; Sat, 25 Feb 2017 14:59:40 +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 3323934071C for ; Sat, 25 Feb 2017 14:59:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A0A2B53AB for ; Sat, 25 Feb 2017 14:59:38 +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: <1488032128.9b0381b0a1bb48191b63472a7297882b81f1a1a5.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: 9b0381b0a1bb48191b63472a7297882b81f1a1a5 X-VCS-Branch: next Date: Sat, 25 Feb 2017 14:59:38 +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: ee200bab-e869-4ae7-8dc8-2d95ad3e81cf X-Archives-Hash: 3c261582db5cf5aeead1938f7ba0a406 commit: 9b0381b0a1bb48191b63472a7297882b81f1a1a5 Author: cgzones googlemail com> AuthorDate: Thu Jan 5 11:14:08 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Feb 25 14:15:28 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=9b0381b0 add init_daemon_lock_file() needed for ntp policy/modules/system/init.if | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index 1b26cf5e..4a36e12a 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -512,6 +512,39 @@ interface(`init_daemon_pid_file',` ######################################## ## +## Mark the file type as a daemon lock file, allowing initrc_t +## to create it +## +## +## +## Type to mark as a daemon lock file +## +## +## +## +## Class on which the type is applied +## +## +## +## +## Filename of the file that the init script creates +## +## +# +interface(`init_daemon_lock_file',` + gen_require(` + type initrc_t; + ') + + files_lock_file($1) + files_lock_filetrans(initrc_t, $1, $2, $3) + + allow initrc_t $1:dir manage_dir_perms; + allow initrc_t $1:file manage_file_perms; +') + +######################################## +## ## Mark the file type as a daemon run dir, allowing initrc_t ## to create it ## 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 60179139695 for ; Sat, 25 Feb 2017 14:51:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EA42EE0CB9; Sat, 25 Feb 2017 14:51:45 +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 C760CE0CB9 for ; Sat, 25 Feb 2017 14:51:45 +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 E083F3413B7 for ; Sat, 25 Feb 2017 14:51:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8249A542F for ; Sat, 25 Feb 2017 14:51:42 +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: <1488032128.9b0381b0a1bb48191b63472a7297882b81f1a1a5.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: 9b0381b0a1bb48191b63472a7297882b81f1a1a5 X-VCS-Branch: master Date: Sat, 25 Feb 2017 14:51: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: 54d12e2d-b44b-4cea-85cb-827f2c3fdd4e X-Archives-Hash: a060c13de90676b14d6690f2e17b8d62 Message-ID: <20170225145142.umDASPVw7AfsiYfBYQbpoXvF8mCvm90psDZD2z8FwHw@z> commit: 9b0381b0a1bb48191b63472a7297882b81f1a1a5 Author: cgzones googlemail com> AuthorDate: Thu Jan 5 11:14:08 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Feb 25 14:15:28 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=9b0381b0 add init_daemon_lock_file() needed for ntp policy/modules/system/init.if | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index 1b26cf5e..4a36e12a 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -512,6 +512,39 @@ interface(`init_daemon_pid_file',` ######################################## ## +## Mark the file type as a daemon lock file, allowing initrc_t +## to create it +## +## +## +## Type to mark as a daemon lock file +## +## +## +## +## Class on which the type is applied +## +## +## +## +## Filename of the file that the init script creates +## +## +# +interface(`init_daemon_lock_file',` + gen_require(` + type initrc_t; + ') + + files_lock_file($1) + files_lock_filetrans(initrc_t, $1, $2, $3) + + allow initrc_t $1:dir manage_dir_perms; + allow initrc_t $1:file manage_file_perms; +') + +######################################## +## ## Mark the file type as a daemon run dir, allowing initrc_t ## to create it ##