mirror of
https://github.com/systemd/systemd
synced 2024-07-22 18:55:10 +00:00
TEST-50-DISSECT: Skip mountfsd test if the user namespace interface is not supported
This commit is contained in:
parent
82e00a3f62
commit
2a9184b902
|
@ -49,6 +49,15 @@ systemd-dissect --image-policy='root=unprotected:=absent+unused' --mtree /var/tm
|
|||
(! runas testuser systemd-dissect /var/tmp/unpriv.raw)
|
||||
(! runas testuser systemd-dissect --mtree /var/tmp/unpriv.raw)
|
||||
|
||||
if (SYSTEMD_LOG_TARGET=console varlinkctl call \
|
||||
/run/systemd/userdb/io.systemd.NamespaceResource \
|
||||
io.systemd.NamespaceResource.AllocateUserRange \
|
||||
'{"name":"test-supported","size":65536,"userNamespaceFileDescriptor":0}' 2>&1 || true) |
|
||||
grep -q "io.systemd.NamespaceResource.UserNamespaceInterfaceNotSupported"; then
|
||||
echo "User namespace interface not supported, skipping mountnfsd/nsresourced tests"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Install key in keychain
|
||||
cp /tmp/test-50-unpriv-cert.crt /run/verity.d
|
||||
|
||||
|
|
Loading…
Reference in a new issue