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 E9C0515808A for ; Tue, 15 Jul 2025 07:54:23 +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 D2C55340E8D for ; Tue, 15 Jul 2025 07:54:23 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 44E7A11055C; Tue, 15 Jul 2025 07:54:15 +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 3C4BE11055C for ; Tue, 15 Jul 2025 07:54:15 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D2DA2340E5C for ; Tue, 15 Jul 2025 07:54:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 42628317E for ; Tue, 15 Jul 2025 07:54:13 +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: <1752565943.5f0e7b0e46e2972b99bc2784b9e9df9de89a572b.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/services/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/chronyd.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 5f0e7b0e46e2972b99bc2784b9e9df9de89a572b X-VCS-Branch: master Date: Tue, 15 Jul 2025 07:54:13 +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: 2db4fd2c-f172-4637-b092-fa2be6666c65 X-Archives-Hash: 58d11567edd528296a578a7d621ea51e commit: 5f0e7b0e46e2972b99bc2784b9e9df9de89a572b Author: Clayton Casciato 21sw us> AuthorDate: Wed Jun 11 03:30:13 2025 +0000 Commit: Jason Zaman gentoo org> CommitDate: Tue Jul 15 07:52:23 2025 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=5f0e7b0e chronyd: allow chronyd_t kernel_t:system module_request type=PROCTITLE proctitle=/usr/sbin/chronyd type=SYSCALL arch=armeb syscall=socket per=PER_LINUX success=no exit=EAFNOSUPPORT(Address family not supported by protocol) a0=inet6 a1=SOCK_DGRAM a2=ip a3=0x80800 items=0 ppid=1 pid=1308 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=chronyd exe=/usr/sbin/chronyd subj=system_u:system_r:chronyd_t:s0 key=(null) type=AVC avc: denied { module_request } for pid=1308 comm=chronyd kmod="net-pf-10" scontext=system_u:system_r:chronyd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system -- Issue background: https://access.redhat.com/solutions/6768131 -- Fedora: https://github.com/fedora-selinux/selinux-policy/commit/d5acb7734d02012c54bee0064155c477b96f0bdd $ sesearch -A --source chronyd_t --target kernel_t --class system --perm module_request allow chronyd_t kernel_t:system module_request; allow domain kernel_t:system module_request; [ domain_kernel_load_modules ]:True Signed-off-by: Clayton Casciato 21sw.us> Signed-off-by: Jason Zaman gentoo.org> policy/modules/services/chronyd.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/services/chronyd.te b/policy/modules/services/chronyd.te index 3d4007a57..0cac72e13 100644 --- a/policy/modules/services/chronyd.te +++ b/policy/modules/services/chronyd.te @@ -83,6 +83,7 @@ files_runtime_filetrans(chronyd_t, chronyd_runtime_t, { dir file sock_file }) kernel_read_system_state(chronyd_t) kernel_read_network_state(chronyd_t) +kernel_request_load_module(chronyd_t) corenet_all_recvfrom_netlabel(chronyd_t) corenet_udp_sendrecv_generic_if(chronyd_t)