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 898971389E2 for ; Fri, 28 Nov 2014 10:04:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1CFE1E08AC; Fri, 28 Nov 2014 10:04:10 +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 D3695E08A4 for ; Fri, 28 Nov 2014 10:04:08 +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 E945A3404A5 for ; Fri, 28 Nov 2014 10:04:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C6C8B153 for ; Fri, 28 Nov 2014 10:04:04 +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: <1417125485.b86c4b022307c8477a9373e0677b9eb51240e71b.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/lvm.fc policy/modules/system/lvm.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: b86c4b022307c8477a9373e0677b9eb51240e71b X-VCS-Branch: next Date: Fri, 28 Nov 2014 10:04:04 +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: 1cc6f5bd-0ec0-462e-9c32-b7f9ba0a524c X-Archives-Hash: 9c65ff572c2c3d0c5d15298fe09ca908 commit: b86c4b022307c8477a9373e0677b9eb51240e71b Author: Sven Vermeulen siphos be> AuthorDate: Thu Nov 27 21:58:05 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Thu Nov 27 21:58:05 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=b86c4b02 Fix bug #529430 - Various policy fixes to support lvmetad, dmeventd/lvm-monitoring --- policy/modules/system/lvm.fc | 9 +++++++++ policy/modules/system/lvm.te | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/policy/modules/system/lvm.fc b/policy/modules/system/lvm.fc index 13a5759..ea5ba34 100644 --- a/policy/modules/system/lvm.fc +++ b/policy/modules/system/lvm.fc @@ -105,3 +105,12 @@ ifdef(`distro_gentoo',` /var/lock/lvm(/.*)? gen_context(system_u:object_r:lvm_lock_t,s0) /var/run/multipathd\.sock -s gen_context(system_u:object_r:lvm_var_run_t,s0) /var/run/dmevent.* gen_context(system_u:object_r:lvm_var_run_t,s0) + +ifdef(`distro_gentoo',` +# Bug 529430 comment 7 +/sbin/lvmetad -- gen_context(system_u:object_r:lvm_exec_t,s0) +/var/run/lvm(/.*)? gen_context(system_u:object_r:lvm_var_run_t,s0) + +# Bug 529430 comment 8 +/sbin/dmeventd -- gen_context(system_u:object_r:lvm_exec_t,s0) +') diff --git a/policy/modules/system/lvm.te b/policy/modules/system/lvm.te index a5952f7..a1485fb 100644 --- a/policy/modules/system/lvm.te +++ b/policy/modules/system/lvm.te @@ -365,6 +365,11 @@ ifdef(`distro_gentoo',` allow lvm_t self:socket create_stream_socket_perms; create_dirs_pattern(lvm_t, lvm_etc_t, lvm_metadata_t) + # Bug 529430 comment 6 + create_dirs_pattern(lvm_t, lvm_etc_t, lvm_etc_t) + # BUg 529430 comment 8 + manage_fifo_files_pattern(lvm_t, lvm_var_run_t, lvm_var_run_t) + filetrans_pattern(lvm_t, lvm_etc_t, lvm_metadata_t, dir, "cache") kernel_request_load_module(lvm_t) 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 696471389E2 for ; Thu, 27 Nov 2014 21:59:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A993DE085A; Thu, 27 Nov 2014 21:59:24 +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 561FDE085A for ; Thu, 27 Nov 2014 21:59:24 +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 302823402A2 for ; Thu, 27 Nov 2014 21:59:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AF56DB0A9 for ; Thu, 27 Nov 2014 21:59:18 +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: <1417125485.b86c4b022307c8477a9373e0677b9eb51240e71b.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.fc policy/modules/system/lvm.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: b86c4b022307c8477a9373e0677b9eb51240e71b X-VCS-Branch: master Date: Thu, 27 Nov 2014 21:59:18 +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: c282f98b-bcda-4547-af4a-43cc3f262575 X-Archives-Hash: 57e3eb06d73325923bb4b9b061bd2ef7 Message-ID: <20141127215918._sbBce-aDrCFUFaxPzmw6gTyt7-iHEIVe3Tue-rb-p8@z> commit: b86c4b022307c8477a9373e0677b9eb51240e71b Author: Sven Vermeulen siphos be> AuthorDate: Thu Nov 27 21:58:05 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Thu Nov 27 21:58:05 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=b86c4b02 Fix bug #529430 - Various policy fixes to support lvmetad, dmeventd/lvm-monitoring --- policy/modules/system/lvm.fc | 9 +++++++++ policy/modules/system/lvm.te | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/policy/modules/system/lvm.fc b/policy/modules/system/lvm.fc index 13a5759..ea5ba34 100644 --- a/policy/modules/system/lvm.fc +++ b/policy/modules/system/lvm.fc @@ -105,3 +105,12 @@ ifdef(`distro_gentoo',` /var/lock/lvm(/.*)? gen_context(system_u:object_r:lvm_lock_t,s0) /var/run/multipathd\.sock -s gen_context(system_u:object_r:lvm_var_run_t,s0) /var/run/dmevent.* gen_context(system_u:object_r:lvm_var_run_t,s0) + +ifdef(`distro_gentoo',` +# Bug 529430 comment 7 +/sbin/lvmetad -- gen_context(system_u:object_r:lvm_exec_t,s0) +/var/run/lvm(/.*)? gen_context(system_u:object_r:lvm_var_run_t,s0) + +# Bug 529430 comment 8 +/sbin/dmeventd -- gen_context(system_u:object_r:lvm_exec_t,s0) +') diff --git a/policy/modules/system/lvm.te b/policy/modules/system/lvm.te index a5952f7..a1485fb 100644 --- a/policy/modules/system/lvm.te +++ b/policy/modules/system/lvm.te @@ -365,6 +365,11 @@ ifdef(`distro_gentoo',` allow lvm_t self:socket create_stream_socket_perms; create_dirs_pattern(lvm_t, lvm_etc_t, lvm_metadata_t) + # Bug 529430 comment 6 + create_dirs_pattern(lvm_t, lvm_etc_t, lvm_etc_t) + # BUg 529430 comment 8 + manage_fifo_files_pattern(lvm_t, lvm_var_run_t, lvm_var_run_t) + filetrans_pattern(lvm_t, lvm_etc_t, lvm_metadata_t, dir, "cache") kernel_request_load_module(lvm_t)