summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/test-run.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-run.sh b/tests/test-run.sh
index 585fbf4..979480e 100755
--- a/tests/test-run.sh
+++ b/tests/test-run.sh
@@ -153,10 +153,11 @@ if ! ${is_uidzero}; then
done
echo "ok - we have no caps as uid != 0"
else
- capsh --print > caps.orig
+ capsh --print | sed -e 's/no-new-privs=0/no-new-privs=1/' > caps.expected
+
for OPT in "" "--as-pid-1"; do
$RUN $OPT --unshare-pid capsh --print >caps.test
- diff -u caps.orig caps.test
+ diff -u caps.expected caps.test
done
# And test that we can drop all, as well as specific caps
$RUN $OPT --cap-drop ALL --unshare-pid capsh --print >caps.test