chiark / gitweb /
nspawn: introduce new --capabilities= flag and make use of it in the nspawn test...
[elogind.git] / test / TEST-01-BASIC / test.sh
index 06b80c2a154238232787257aa1c115651bba692b..8979872ef22b3dbb8aad6c378ac55c28afd12a2d 100755 (executable)
@@ -37,7 +37,7 @@ run_qemu() {
 
 
 run_nspawn() {
-    systemd-nspawn -b -D $TESTDIR/nspawn-root /usr/lib/systemd/systemd
+    systemd-nspawn -b -D $TESTDIR/nspawn-root --capability=CAP_AUDIT_CONTROL,CAP_AUDIT_WRITE /usr/lib/systemd/systemd
     ret=1
     [[ -e $TESTDIR/nspawn-root/testok ]] && ret=0
     cp -a $TESTDIR/nspawn-root/var/log/journal $TESTDIR