tests: port to testing in Linux /tmp
* tests/selnx01.at: Discard restorecon output, as it contains "Warning no default label for ..." when run in Linux tmpfs on Fedora 40.
This commit is contained in:
@@ -35,7 +35,7 @@ ln -s file dir/link
|
|||||||
|
|
||||||
getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
|
getfattr -h -d -msecurity.selinux dir dir/file dir/link > start
|
||||||
|
|
||||||
restorecon -R dir
|
restorecon -R dir >/dev/null
|
||||||
chcon -h --user=system_u dir
|
chcon -h --user=system_u dir
|
||||||
chcon -h --user=unconfined_u dir/file
|
chcon -h --user=unconfined_u dir/file
|
||||||
chcon -h --user=system_u dir/link
|
chcon -h --user=system_u dir/link
|
||||||
|
|||||||
Reference in New Issue
Block a user