From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 827B41382C5 for ; Sat, 28 Nov 2020 23:09:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CCED0E0823; Sat, 28 Nov 2020 23:09:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B69FFE0823 for ; Sat, 28 Nov 2020 23:09:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DDE9F341650 for ; Sat, 28 Nov 2020 23:09:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 48728476 for ; Sat, 28 Nov 2020 23:09:30 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1605517423.f5fb96b1a6cbde18dcf9bde9b29a84fb81acdb1e.perfinion@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: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: f5fb96b1a6cbde18dcf9bde9b29a84fb81acdb1e X-VCS-Branch: master Date: Sat, 28 Nov 2020 23:09:30 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 574e92d2-eda2-4fbe-8555-37cd5172d80b X-Archives-Hash: 89d2115ebd6d47be68813cbbfc2dca20 commit: f5fb96b1a6cbde18dcf9bde9b29a84fb81acdb1e Author: Guido Trentalancia trentalancia com> AuthorDate: Mon Nov 9 14:43:01 2020 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Nov 16 09:03:43 2020 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=f5fb96b1 Add LVM module permissions needed to open cryptsetup devices. Signed-off-by: Guido Trentalancia trentalancia.com> Signed-off-by: Jason Zaman gentoo.org> policy/modules/system/lvm.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/system/lvm.te b/policy/modules/system/lvm.te index 23eaceb2..58517502 100644 --- a/policy/modules/system/lvm.te +++ b/policy/modules/system/lvm.te @@ -177,6 +177,8 @@ allow lvm_t self:netlink_kobject_uevent_socket create_socket_perms; allow lvm_t self:sem create_sem_perms; # gt: the following is for sockets in the AF_ALG namespace (userspace interface to the kernel Crypto API) allow lvm_t self:socket create_stream_socket_perms; +# gt: the following allows opening cryptsetup devices +allow lvm_t self:key { search write }; allow lvm_t self:unix_stream_socket { connectto create_stream_socket_perms }; allow lvm_t clvmd_t:unix_stream_socket { connectto rw_socket_perms };