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 09768138247 for ; Sun, 12 Oct 2014 09:13:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 05FBDE0BF0; Sun, 12 Oct 2014 09:13: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 75C8EE0C10 for ; Sun, 12 Oct 2014 09:13:44 +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 DCBB33403C3 for ; Sun, 12 Oct 2014 09:13:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 22E157A24 for ; Sun, 12 Oct 2014 09:13:41 +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: <1413103117.eaef7e0bc37c62511400aaf136f8bb6e4e63241a.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/authlogin.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: eaef7e0bc37c62511400aaf136f8bb6e4e63241a X-VCS-Branch: master Date: Sun, 12 Oct 2014 09:13:41 +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: 8333b4d9-2d12-47bd-8813-c13539408469 X-Archives-Hash: 75b7de2faff3af37eed6ebcd64e905b1 commit: eaef7e0bc37c62511400aaf136f8bb6e4e63241a Author: Sven Vermeulen siphos be> AuthorDate: Sun Oct 12 08:38:37 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Oct 12 08:38:37 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=eaef7e0b Add auth_pid_filetrans_pam_var_run This interface allows a domain to create resources inside the generic pid location (/var/run) and have them created with the pam_var_run_t type. --- policy/modules/system/authlogin.if | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/policy/modules/system/authlogin.if b/policy/modules/system/authlogin.if index 8225390..f20a6a6 100644 --- a/policy/modules/system/authlogin.if +++ b/policy/modules/system/authlogin.if @@ -1805,3 +1805,37 @@ interface(`auth_unconfined',` typeattribute $1 can_write_shadow_passwords; typeattribute $1 can_relabelto_shadow_passwords; ') + +# Should be in an ifdef distro_gentoo but that is not supported in the global if file + +######################################## +## +## Create specified objects in +## pid directories with the pam var +## run file type using a +## file type transition. +## +## +## +## Domain allowed access. +## +## +## +## +## Class of the object being created. +## +## +## +## +## The name of the object being created. +## +## +# +interface(`auth_pid_filetrans_pam_var_run',` + gen_require(` + type pam_var_run_t; + ') + + files_pid_filetrans($1, pam_var_run_t, $2, $3) +') + 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 5E3B0138247 for ; Sun, 12 Oct 2014 08:44:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E137EE0C6B; Sun, 12 Oct 2014 08:44:37 +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 79D1BE0C6B for ; Sun, 12 Oct 2014 08:44:37 +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 A4B333403F0 for ; Sun, 12 Oct 2014 08:44:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5FAAD7A0C for ; Sun, 12 Oct 2014 08:44:35 +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: <1413103117.eaef7e0bc37c62511400aaf136f8bb6e4e63241a.swift@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/authlogin.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: eaef7e0bc37c62511400aaf136f8bb6e4e63241a X-VCS-Branch: next Date: Sun, 12 Oct 2014 08:44:35 +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: c7e033d6-e867-4a7d-adab-5598740a1765 X-Archives-Hash: b4d9a7060ce1a275a421ec74122a9aea Message-ID: <20141012084435.wcNE59Tmrov2jA3fxDLyJ_ahHO9SRQWMhS8Q4bAA8FM@z> commit: eaef7e0bc37c62511400aaf136f8bb6e4e63241a Author: Sven Vermeulen siphos be> AuthorDate: Sun Oct 12 08:38:37 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Oct 12 08:38:37 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=eaef7e0b Add auth_pid_filetrans_pam_var_run This interface allows a domain to create resources inside the generic pid location (/var/run) and have them created with the pam_var_run_t type. --- policy/modules/system/authlogin.if | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/policy/modules/system/authlogin.if b/policy/modules/system/authlogin.if index 8225390..f20a6a6 100644 --- a/policy/modules/system/authlogin.if +++ b/policy/modules/system/authlogin.if @@ -1805,3 +1805,37 @@ interface(`auth_unconfined',` typeattribute $1 can_write_shadow_passwords; typeattribute $1 can_relabelto_shadow_passwords; ') + +# Should be in an ifdef distro_gentoo but that is not supported in the global if file + +######################################## +## +## Create specified objects in +## pid directories with the pam var +## run file type using a +## file type transition. +## +## +## +## Domain allowed access. +## +## +## +## +## Class of the object being created. +## +## +## +## +## The name of the object being created. +## +## +# +interface(`auth_pid_filetrans_pam_var_run',` + gen_require(` + type pam_var_run_t; + ') + + files_pid_filetrans($1, pam_var_run_t, $2, $3) +') +