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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4F0F515808B for ; Thu, 31 Mar 2022 03:31:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0B039E07F9; Thu, 31 Mar 2022 03:31:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 AD37AE07EF for ; Thu, 31 Mar 2022 03:31:28 +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 122A03414F0 for ; Thu, 31 Mar 2022 03:31:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2EEAB37B for ; Thu, 31 Mar 2022 03:31:24 +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: <1648694453.73fad8a2bc1251e5d3c5cb47933ac92a2440d4bf.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: 73fad8a2bc1251e5d3c5cb47933ac92a2440d4bf X-VCS-Branch: master Date: Thu, 31 Mar 2022 03:31:24 +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: 4d9833af-e282-41df-8ece-96ad11f0f763 X-Archives-Hash: d102708c454c3381786b9a333eabfeae commit: 73fad8a2bc1251e5d3c5cb47933ac92a2440d4bf Author: Kenton Groombridge concord sh> AuthorDate: Tue Nov 30 16:09:39 2021 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu Mar 31 02:40:53 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=73fad8a2 systemd: various fixes Signed-off-by: Kenton Groombridge concord.sh> Signed-off-by: Jason Zaman gentoo.org> policy/modules/system/systemd.te | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te index cd120829..171cb5e5 100644 --- a/policy/modules/system/systemd.te +++ b/policy/modules/system/systemd.te @@ -658,6 +658,9 @@ udev_read_runtime_files(systemd_homework_t) allow systemd_hostnamed_t self:capability sys_admin; +fs_getattr_cgroup(systemd_hostnamed_t) +fs_getattr_xattr_fs(systemd_hostnamed_t) + kernel_read_kernel_sysctls(systemd_hostnamed_t) kernel_dontaudit_getattr_proc(systemd_hostnamed_t) @@ -1020,6 +1023,9 @@ optional_policy(` # modules-load local policy # +fs_getattr_cgroup(systemd_modules_load_t) +fs_getattr_xattr_fs(systemd_modules_load_t) + kernel_load_module(systemd_modules_load_t) kernel_read_kernel_sysctls(systemd_modules_load_t) kernel_request_load_module(systemd_modules_load_t) @@ -1372,6 +1378,10 @@ manage_dirs_pattern(systemd_rfkill_t, systemd_rfkill_var_lib_t, systemd_rfkill_v manage_files_pattern(systemd_rfkill_t, systemd_rfkill_var_lib_t, systemd_rfkill_var_lib_t) init_var_lib_filetrans(systemd_rfkill_t, systemd_rfkill_var_lib_t, dir) +fs_getattr_cgroup(systemd_rfkill_t) +fs_getattr_xattr_fs(systemd_rfkill_t) + +kernel_getattr_proc(systemd_rfkill_t) kernel_read_kernel_sysctls(systemd_rfkill_t) dev_read_sysfs(systemd_rfkill_t) @@ -1586,6 +1596,7 @@ dev_setattr_all_sysfs(systemd_tmpfiles_t) dev_write_sysfs(systemd_tmpfiles_t) files_create_lock_dirs(systemd_tmpfiles_t) +files_dontaudit_getattr_lost_found_dirs(systemd_tmpfiles_t) files_manage_all_runtime_dirs(systemd_tmpfiles_t) files_delete_usr_files(systemd_tmpfiles_t) files_list_home(systemd_tmpfiles_t) @@ -1853,6 +1864,7 @@ fs_unmount_tmpfs(systemd_user_runtime_dir_t) fs_relabelfrom_tmpfs_dirs(systemd_user_runtime_dir_t) fs_read_cgroup_files(systemd_user_runtime_dir_t) fs_getattr_cgroup(systemd_user_runtime_dir_t) +fs_search_cgroup_dirs(systemd_user_runtime_dir_t) fs_getattr_xattr_fs(systemd_user_runtime_dir_t) kernel_read_kernel_sysctls(systemd_user_runtime_dir_t)