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 6BE8E15827B for ; Tue, 02 Sep 2025 22:15:22 +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) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 56321340E73 for ; Tue, 02 Sep 2025 22:15:22 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 4529911056F; Tue, 02 Sep 2025 22:15:19 +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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 39C3911056F for ; Tue, 02 Sep 2025 22:15:19 +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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E85E133BE11 for ; Tue, 02 Sep 2025 22:15:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5F7CD306C for ; Tue, 02 Sep 2025 22:15:17 +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: <1756845601.ec44d0f7401dbd1c01bead625eb1d08752fbe254.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/udev.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: ec44d0f7401dbd1c01bead625eb1d08752fbe254 X-VCS-Branch: master Date: Tue, 02 Sep 2025 22:15:17 +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: 6bad08ac-598c-4896-8b26-b702d886f2bf X-Archives-Hash: 2e22b06c41859cfef6bc72a4e5371d1f commit: ec44d0f7401dbd1c01bead625eb1d08752fbe254 Author: Yi Zhao windriver com> AuthorDate: Sun Jul 20 15:17:09 2025 +0000 Commit: Jason Zaman gentoo org> CommitDate: Tue Sep 2 20:40:01 2025 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ec44d0f7 udev: allow udev_t to watch udev_runtime_t directory Fix: avc: denied { watch } for pid=175 comm="udevadm" path="/run/udev" dev="tmpfs" ino=2 scontext=system_u:system_r:udev_t tcontext=system_u:object_r:udev_runtime_t tclass=dir permissive=0 Signed-off-by: Yi Zhao windriver.com> Signed-off-by: Jason Zaman gentoo.org> policy/modules/system/udev.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/system/udev.te b/policy/modules/system/udev.te index b8406bf3b..b7864d240 100644 --- a/policy/modules/system/udev.te +++ b/policy/modules/system/udev.te @@ -85,6 +85,7 @@ manage_files_pattern(udev_t, udev_runtime_t, udev_runtime_t) manage_lnk_files_pattern(udev_t, udev_runtime_t, udev_runtime_t) manage_sock_files_pattern(udev_t, udev_runtime_t, udev_runtime_t) files_runtime_filetrans(udev_t, udev_runtime_t, dir, "udev") +allow udev_t udev_runtime_t:dir watch; kernel_load_module(udev_t) kernel_read_system_state(udev_t)