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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6C16D1580FD for ; Sun, 15 Dec 2024 00:30:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1978FE09ED; Sun, 15 Dec 2024 00:30:21 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 01FC3E09D9 for ; Sun, 15 Dec 2024 00:30:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1D7FE342FB7 for ; Sun, 15 Dec 2024 00:30:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BE89422CE for ; Sun, 15 Dec 2024 00:30:16 +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: <1734221982.ef4faa48be0e92c8ca9ee2be1ac48a88bccbeda9.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/systemd.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: ef4faa48be0e92c8ca9ee2be1ac48a88bccbeda9 X-VCS-Branch: master Date: Sun, 15 Dec 2024 00:30:16 +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: 22258d2b-10e1-4171-9bcc-3b807ecad979 X-Archives-Hash: 95e3df9c77c279591c7591c92cfde855 commit: ef4faa48be0e92c8ca9ee2be1ac48a88bccbeda9 Author: Rahul Sandhu sandhuservices dev> AuthorDate: Tue Dec 10 08:09:10 2024 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Dec 15 00:19:42 2024 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ef4faa48 systemd-homework: move optional policy to end of block Signed-off-by: Rahul Sandhu sandhuservices.dev> Signed-off-by: Jason Zaman gentoo.org> policy/modules/system/systemd.te | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te index 41f67fec5..2f344c7ad 100644 --- a/policy/modules/system/systemd.te +++ b/policy/modules/system/systemd.te @@ -758,12 +758,6 @@ files_home_filetrans(systemd_homework_t, systemd_homed_storage_t, file) allow systemd_homework_t systemd_homed_tmpfs_t:file rw_inherited_file_perms; -# setup luks backed home directories in /run/cryptsetup -optional_policy(` - lvm_manage_runtime_files(systemd_homework_t) - lvm_manage_runtime_dirs(systemd_homework_t) -') - dev_rw_loop_control(systemd_homework_t) dev_read_rand(systemd_homework_t) dev_read_urand(systemd_homework_t) @@ -800,6 +794,12 @@ systemd_log_parse_environment(systemd_homework_t) udev_read_runtime_files(systemd_homework_t) +# setup luks backed home directories in /run/cryptsetup +optional_policy(` + lvm_manage_runtime_files(systemd_homework_t) + lvm_manage_runtime_dirs(systemd_homework_t) +') + ####################################### # # Hostnamed policy