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 2C4EF1381F3 for ; Mon, 12 Nov 2012 21:59:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85DD5E02DF; Mon, 12 Nov 2012 21:58:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0823BE031D for ; Mon, 12 Nov 2012 21:58:58 +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 0646C33DA0B for ; Mon, 12 Nov 2012 21:58:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 60667E544A for ; Mon, 12 Nov 2012 21:58:56 +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: <1352756967.e9440215bc250e4a0e117e35e5f1490d8bf0f9e7.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/lvm.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: e9440215bc250e4a0e117e35e5f1490d8bf0f9e7 X-VCS-Branch: master Date: Mon, 12 Nov 2012 21:58:56 +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: 8e92305b-86df-4fbe-b31f-9c89bc1deb75 X-Archives-Hash: 65a175ee36cb04fd1f390bb8fd2b4bfb commit: e9440215bc250e4a0e117e35e5f1490d8bf0f9e7 Author: Sven Vermeulen siphos be> AuthorDate: Mon Nov 12 21:49:27 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Mon Nov 12 21:49:27 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=e9440215 lvscan creates the /run/lock/lvm directory if nonexisting If the /run/lock/lvm directory doesn't exist yet, running any of the LVM tools (like lvscan) will create this directory. Introduce a named file transition for the lock location when a directory named "lvm" is created. --- policy/modules/system/lvm.te | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/policy/modules/system/lvm.te b/policy/modules/system/lvm.te index 05392e1..02e4873 100644 --- a/policy/modules/system/lvm.te +++ b/policy/modules/system/lvm.te @@ -312,6 +312,10 @@ ifdef(`distro_redhat',` ') ') +ifdef(`distro_gentoo',` + files_lock_filetrans(lvm_t, lvm_lock_t, dir, "lvm") +') + optional_policy(` bootloader_rw_tmp_files(lvm_t) ')