mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +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:
commit
8c4d69b2f6
6 changed files with 169 additions and 75 deletions
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue