Fix non-exhaustive pattern in selinux doc test

This commit is contained in:
Christopher Dryden
2026-01-13 23:55:27 +00:00
committed by Sylvestre Ledru
parent 42b734bc42
commit 395dd8181e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -219,6 +219,7 @@ pub fn set_selinux_security_context(
/// Err(SeLinuxError::ContextRetrievalFailure(e)) => println!("Failed to retrieve the security context: {e}"),
/// Err(SeLinuxError::ContextConversionFailure(ctx, e)) => println!("Failed to convert context '{ctx}': {e}"),
/// Err(SeLinuxError::ContextSetFailure(ctx, e)) => println!("Failed to set context '{ctx}': {e}"),
/// Err(SeLinuxError::OperationNotSupported) => println!("Operation not supported"),
/// }
/// ```
pub fn get_selinux_security_context(
+1 -1
View File
@@ -90,7 +90,7 @@ cd -
export CARGOFLAGS # tell to make
if [ "${SELINUX_ENABLED}" = 1 ];then
# Build few utils for SELinux for faster build. MULTICALL=y fails...
"${MAKE}" UTILS="cat chcon chmod cp cut dd echo env groups id install ln ls mkdir mkfifo mknod mktemp mv printf realpath rm rmdir runcon seq stat test touch tr true uname wc whoami"
make UTILS="cat chcon chmod cp cut dd echo env groups id install ln ls mkdir mkfifo mknod mktemp mv printf realpath rm rmdir runcon seq stat test touch tr true uname wc whoami"
else
# Use MULTICALL=y for faster build
make MULTICALL=y SKIP_UTILS=more