1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge pull request #7845 from sylvestre/selinux-error

set_selinux_security_context should return an Error, not String
This commit is contained in:
Daniel Hofstetter 2025-05-04 12:45:53 +02:00 committed by GitHub
commit 8c4d69b2f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 169 additions and 75 deletions

View file

@ -411,7 +411,7 @@ fn test_selinux_invalid() {
.arg(at.plus_as_string(dest))
.fails()
.no_stdout()
.stderr_contains("failed to set SELinux security context:");
.stderr_contains("Failed to set default file creation context to 'testtest':");
// invalid context, so, no directory
assert!(!at.dir_exists(dest));
}

View file

@ -160,7 +160,7 @@ fn test_mkfifo_selinux_invalid() {
.arg(arg)
.arg(dest)
.fails()
.stderr_contains("Failed to");
.stderr_contains("failed to");
if at.file_exists(dest) {
at.remove(dest);
}

View file

@ -187,7 +187,7 @@ fn test_mknod_selinux_invalid() {
.arg(dest)
.arg("p")
.fails()
.stderr_contains("Failed to");
.stderr_contains("failed to");
if at.file_exists(dest) {
at.remove(dest);
}