From 9d4930b8b93e1151846f3fa2ee0d4ce6700c01c7 Mon Sep 17 00:00:00 2001 From: Christopher Dryden Date: Fri, 26 Dec 2025 22:38:44 +0000 Subject: [PATCH] uucore: document that libselinux caches is_selinux_enabled --- src/uucore/src/lib/features/selinux.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uucore/src/lib/features/selinux.rs b/src/uucore/src/lib/features/selinux.rs index 9bd2c5e6e53..04d6e4464f4 100644 --- a/src/uucore/src/lib/features/selinux.rs +++ b/src/uucore/src/lib/features/selinux.rs @@ -53,6 +53,7 @@ impl From for i32 { /// Checks if SELinux is enabled on the system. /// /// This function verifies whether the kernel has SELinux support enabled. +/// Note: libselinux internally caches this value, so no additional caching is needed. pub fn is_selinux_enabled() -> bool { selinux::kernel_support() != selinux::KernelSupport::Unsupported }