Skip to content

Commit 6f37a24

Browse files
ChrisDrydensylvestre
authored andcommitted
uucore: document that libselinux caches is_selinux_enabled
1 parent 31b5cc1 commit 6f37a24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/uucore/src/lib/features/selinux.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ impl From<SeLinuxError> for i32 {
5353
/// Checks if SELinux is enabled on the system.
5454
///
5555
/// This function verifies whether the kernel has SELinux support enabled.
56+
/// Note: libselinux internally caches this value, so no additional caching is needed.
5657
pub fn is_selinux_enabled() -> bool {
5758
selinux::kernel_support() != selinux::KernelSupport::Unsupported
5859
}

0 commit comments

Comments
 (0)