From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id 702A81582EF for ; Sat, 08 Mar 2025 23:55:25 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 5F6CB34309B for ; Sat, 08 Mar 2025 23:55:25 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 5CDD211046F; Sat, 08 Mar 2025 23:55:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 bobolink.gentoo.org (Postfix) with ESMTPS id 53CA41103CB for ; Sat, 08 Mar 2025 23:55:07 +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 0964A3409EC for ; Sat, 08 Mar 2025 23:55:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6E40928A6 for ; Sat, 08 Mar 2025 23:55:04 +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: <1741474868.ca9eb66e6cb896fa3596a768f580ba005bde0d5b.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: ca9eb66e6cb896fa3596a768f580ba005bde0d5b X-VCS-Branch: master Date: Sat, 08 Mar 2025 23:55: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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 87152339-aaad-4755-b538-786c4e3eb8be X-Archives-Hash: 41c35d267066d0b1523b002018cdd66a commit: ca9eb66e6cb896fa3596a768f580ba005bde0d5b Author: Yi Zhao windriver com> AuthorDate: Wed Feb 5 07:35:59 2025 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Mar 8 23:01:08 2025 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ca9eb66e systemd: allow more components to get attributes of nsfs inodes Fixes: avc: denied { getattr } for pid=195 comm="systemd-userdbd" path="cgroup:[4026531835]" dev="nsfs" ino=4026531835 scontext=system_u:system_r:systemd_userdbd_t tcontext=system_u:object_r:nsfs_t tclass=file permissive=0 avc: denied { getattr } for pid=191 comm="systemd-resolve" path="cgroup:[4026531835]" dev="nsfs" ino=4026531835 scontext=system_u:system_r:systemd_resolved_t tcontext=system_u:object_r:nsfs_t tclass=file permissive=0 Signed-off-by: Yi Zhao windriver.com> Signed-off-by: Jason Zaman gentoo.org> policy/modules/system/systemd.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te index 202925673..0bc65390c 100644 --- a/policy/modules/system/systemd.te +++ b/policy/modules/system/systemd.te @@ -1789,6 +1789,7 @@ files_watch_runtime_dirs(systemd_resolved_t) files_list_runtime(systemd_resolved_t) fs_getattr_all_fs(systemd_resolved_t) +fs_getattr_nsfs_files(systemd_resolved_t) fs_search_cgroup_dirs(systemd_resolved_t) fs_search_tmpfs(systemd_resolved_t) fs_search_ramfs(systemd_resolved_t) @@ -1902,6 +1903,7 @@ allow systemd_sysusers_t self:unix_dgram_socket sendto; files_manage_etc_files(systemd_sysusers_t) fs_getattr_all_fs(systemd_sysusers_t) +fs_getattr_nsfs_files(systemd_sysusers_t) fs_search_all(systemd_sysusers_t) kernel_read_kernel_sysctls(systemd_sysusers_t) @@ -2094,6 +2096,7 @@ files_etc_filetrans(systemd_update_done_t, systemd_update_run_t, file) files_var_filetrans(systemd_update_done_t, systemd_update_run_t, file) fs_getattr_all_fs(systemd_update_done_t) +fs_getattr_nsfs_files(systemd_update_done_t) fs_search_cgroup_dirs(systemd_update_done_t) kernel_read_kernel_sysctls(systemd_update_done_t) @@ -2210,6 +2213,7 @@ files_read_etc_runtime_files(systemd_userdbd_t) files_read_usr_files(systemd_userdbd_t) fs_getattr_all_fs(systemd_userdbd_t) +fs_getattr_nsfs_files(systemd_userdbd_t) fs_search_cgroup_dirs(systemd_userdbd_t) fs_read_efivarfs_files(systemd_userdbd_t) fs_watch_memory_pressure(systemd_userdbd_t)