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 8AE01138200 for ; Mon, 12 Nov 2012 21:59:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 365E0E05EB; Mon, 12 Nov 2012 21:59:01 +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 60ADBE0020 for ; Mon, 12 Nov 2012 21:59:00 +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 61C1033DA0F for ; Mon, 12 Nov 2012 21:58:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id ACD82E544C 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: <1352757122.e7a83c6fc843309013226f231e9f463db7d4244a.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: e7a83c6fc843309013226f231e9f463db7d4244a 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: 54e26f5d-b16b-4cb2-a120-cadd2c091bd9 X-Archives-Hash: 61640015fc8be1d3bef99679af5b4bd4 commit: e7a83c6fc843309013226f231e9f463db7d4244a Author: Sven Vermeulen siphos be> AuthorDate: Mon Nov 12 21:52:02 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Mon Nov 12 21:52:02 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=e7a83c6f lvm needs read access to the event queue of udev The udev event queue (queue.bin file) is located in the /run/udev folder and labeled udev_var_run_t. Hence, allow the lvm_t domain read access on this file. Without this access, LVM operations that manipulate the volumes (like creating an additional logical volume) results in failures like the following: /dev/vg/test: not found: device not cleared Aborting. Failed to wipe start of new LV. --- 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 6a5d75b..265b345 100644 --- a/policy/modules/system/lvm.te +++ b/policy/modules/system/lvm.te @@ -317,6 +317,10 @@ ifdef(`distro_gentoo',` create_dirs_pattern(lvm_t, lvm_etc_t, lvm_metadata_t) filetrans_pattern(lvm_t, lvm_etc_t, lvm_metadata_t, dir, "cache") + + optional_policy(` + udev_read_pid_files(lvm_t) + ') ') optional_policy(`