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 0102F1382C5 for ; Sun, 7 Feb 2021 03:20:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86CD6E0894; Sun, 7 Feb 2021 03:20:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 604ACE0894 for ; Sun, 7 Feb 2021 03:20:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 5A91E343855 for ; Sun, 7 Feb 2021 03:20:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EED9146B for ; Sun, 7 Feb 2021 03:20:43 +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: <1612644851.db53283aab8d16614c4c72b3967d8570083a2e20.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: db53283aab8d16614c4c72b3967d8570083a2e20 X-VCS-Branch: master Date: Sun, 7 Feb 2021 03:20:43 +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: c0970c11-d593-41fd-8649-fb1b37f509c7 X-Archives-Hash: 22c4407f393f35745533c0b390884ed3 commit: db53283aab8d16614c4c72b3967d8570083a2e20 Author: Kenton Groombridge concord sh> AuthorDate: Mon Feb 1 20:46:24 2021 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Feb 6 20:54:11 2021 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=db53283a lvm: add lvm_tmpfs_t type and rules cryptsetup uses tmpfs when performing some operations on encrypted volumes such as changing keys. Signed-off-by: Kenton Groombridge concord.sh> Signed-off-by: Jason Zaman gentoo.org> policy/modules/system/lvm.te | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/policy/modules/system/lvm.te b/policy/modules/system/lvm.te index a0cc3bd9..99053132 100644 --- a/policy/modules/system/lvm.te +++ b/policy/modules/system/lvm.te @@ -42,6 +42,9 @@ init_unit_file(lvm_unit_t) type lvm_tmp_t; files_tmp_file(lvm_tmp_t) +type lvm_tmpfs_t; +files_tmpfs_file(lvm_tmpfs_t) + type lvm_var_lib_t; files_type(lvm_var_lib_t) @@ -183,6 +186,10 @@ manage_dirs_pattern(lvm_t, lvm_tmp_t, lvm_tmp_t) manage_files_pattern(lvm_t, lvm_tmp_t, lvm_tmp_t) files_tmp_filetrans(lvm_t, lvm_tmp_t, { file dir }) +manage_dirs_pattern(lvm_t, lvm_tmpfs_t, lvm_tmpfs_t) +manage_files_pattern(lvm_t, lvm_tmpfs_t, lvm_tmpfs_t) +fs_tmpfs_filetrans(lvm_t, lvm_tmpfs_t, { dir file }) + # /lib/lvm- holds the actual LVM binaries (and symlinks) read_files_pattern(lvm_t, lvm_exec_t, lvm_exec_t) read_lnk_files_pattern(lvm_t, lvm_exec_t, lvm_exec_t)