summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-capabilityboundingset-invert.service
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-execute/exec-capabilityboundingset-invert.service')
-rw-r--r--test/test-execute/exec-capabilityboundingset-invert.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-execute/exec-capabilityboundingset-invert.service b/test/test-execute/exec-capabilityboundingset-invert.service
index e2b09e1550..fd5d248702 100644
--- a/test/test-execute/exec-capabilityboundingset-invert.service
+++ b/test/test-execute/exec-capabilityboundingset-invert.service
@@ -2,5 +2,6 @@
Description=Test for CapabilityBoundingSet
[Service]
-ExecStart=/bin/sh -c 'c=$(capsh --print | grep "Bounding set " | grep "cap_chown"); echo $c; exit $(test -z $c)'
+ExecStart=/bin/sh -x -c 'c=$$(capsh --print | grep "^Bounding set .*cap_chown"); test -z "$$c"'
+Type=oneshot
CapabilityBoundingSet=~CAP_CHOWN