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 0BEA8138010 for ; Wed, 31 Oct 2012 18:05:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6055221C067; Wed, 31 Oct 2012 18:04:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 75B9DE066B for ; Wed, 31 Oct 2012 18:04:48 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9AD9E33D8A6 for ; Wed, 31 Oct 2012 18:04:47 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 38D99E5449 for ; Wed, 31 Oct 2012 18: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: <1351706370.e099120d06ab99f7210f1800b2fc1d89753ca092.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/files.if X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: e099120d06ab99f7210f1800b2fc1d89753ca092 X-VCS-Branch: master Date: Wed, 31 Oct 2012 18: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: 1cee3f3a-8928-4563-88fe-e7ea32328c2b X-Archives-Hash: 2e6d202cc0f57209e194a57e1a0d65af commit: e099120d06ab99f7210f1800b2fc1d89753ca092 Author: Sven Vermeulen siphos be> AuthorDate: Tue Oct 30 21:51:54 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Wed Oct 31 17:59:30 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=e099120d Introduce files_manage_all_pids interface This interface will be used by domains that need to manage the various pidfile content (*_var_run_t). Signed-off-by: Sven Vermeulen siphos.be> --- policy/modules/kernel/files.if | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if index a223f56..40ed96f 100644 --- a/policy/modules/kernel/files.if +++ b/policy/modules/kernel/files.if @@ -6250,6 +6250,27 @@ interface(`files_dontaudit_getattr_all_pids',` ######################################## ## +## Create, read, write and delete all +## var_run (pid) content +## +## +## +## Domain alloed access. +## +## +# +interface(`files_manage_all_pids',` + gen_require(` + attribute pidfile; + ') + + manage_dirs_pattern($1, pidfile, pidfile) + manage_files_pattern($1, pidfile, pidfile) + manage_lnk_files_pattern($1, pidfile, pidfile) +') + +######################################## +## ## Do not audit attempts to write to daemon runtime data files. ## ##