nspawn: introduce new --capabilities= flag and make use of it in the nspawn test case

This commit is contained in:
Lennart Poettering
2012-06-28 14:05:16 +02:00
parent 6c242857b2
commit 5076f0ccfd
3 changed files with 81 additions and 28 deletions
+1 -1
View File
@@ -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