We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efa1aa7 commit 9d4930bCopy full SHA for 9d4930b
src/uucore/src/lib/features/selinux.rs
@@ -53,6 +53,7 @@ impl From<SeLinuxError> for i32 {
53
/// Checks if SELinux is enabled on the system.
54
///
55
/// This function verifies whether the kernel has SELinux support enabled.
56
+/// Note: libselinux internally caches this value, so no additional caching is needed.
57
pub fn is_selinux_enabled() -> bool {
58
selinux::kernel_support() != selinux::KernelSupport::Unsupported
59
}
0 commit comments