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.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-execute/exec-capabilityboundingset-invert.service b/test/test-execute/exec-capabilityboundingset-invert.service
index fd5d248702..1abe390601 100644
--- a/test/test-execute/exec-capabilityboundingset-invert.service
+++ b/test/test-execute/exec-capabilityboundingset-invert.service
@@ -2,6 +2,6 @@
Description=Test for CapabilityBoundingSet
[Service]
-ExecStart=/bin/sh -x -c 'c=$$(capsh --print | grep "^Bounding set .*cap_chown"); test -z "$$c"'
+ExecStart=/bin/sh -x -c '! capsh --print | grep "^Bounding set .*cap_chown"'
Type=oneshot
CapabilityBoundingSet=~CAP_CHOWN