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 7BEB313877A for ; Mon, 11 Aug 2014 19:50:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A59C4E0A07; Mon, 11 Aug 2014 19:50:08 +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 65F5FE0A40 for ; Mon, 11 Aug 2014 19:50:07 +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 D197E341429 for ; Mon, 11 Aug 2014 15:04:47 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 67D0218815 for ; Mon, 11 Aug 2014 15:04:46 +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: <1407769474.ed3b82dac4a89ce8b9da50986d88b2000b95db33.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/shutdown.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: ed3b82dac4a89ce8b9da50986d88b2000b95db33 X-VCS-Branch: master Date: Mon, 11 Aug 2014 15:04:46 +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: 13cbf6e1-b206-47b2-83a6-4df713903d8a X-Archives-Hash: 228c9a3d146892eb0f40aa9b8ee59bc6 commit: ed3b82dac4a89ce8b9da50986d88b2000b95db33 Author: Sven Vermeulen siphos be> AuthorDate: Mon Aug 11 15:04:34 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Aug 11 15:04:34 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=ed3b82da Introduce shutdown_dontaudit_exec --- policy/modules/contrib/shutdown.if | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/policy/modules/contrib/shutdown.if b/policy/modules/contrib/shutdown.if index d1706bf..bf9cfbe 100644 --- a/policy/modules/contrib/shutdown.if +++ b/policy/modules/contrib/shutdown.if @@ -107,3 +107,23 @@ interface(`shutdown_getattr_exec_files',` corecmd_search_bin($1) allow $1 shutdown_exec_t:file getattr_file_perms; ') + +# This is for Gentoo and should be in a if def distro_gentoo + +######################################### +## +## Do not audit execute attempts of the shutdown binary +## +## +## +## Domain not to audit +## +## +# +interface(`shutdown_dontaudit_exec',` + gen_require(` + type shutdown_exec_t; + ') + + dontaudit $1 shutdown_exec_t:file exec_file_perms; +')