summaryrefslogtreecommitdiff
path: root/test/exec-capabilityboundingset-invert.service
diff options
context:
space:
mode:
Diffstat (limited to 'test/exec-capabilityboundingset-invert.service')
-rw-r--r--test/exec-capabilityboundingset-invert.service6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/exec-capabilityboundingset-invert.service b/test/exec-capabilityboundingset-invert.service
new file mode 100644
index 0000000000..e2b09e1550
--- /dev/null
+++ b/test/exec-capabilityboundingset-invert.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Test for CapabilityBoundingSet
+
+[Service]
+ExecStart=/bin/sh -c 'c=$(capsh --print | grep "Bounding set " | grep "cap_chown"); echo $c; exit $(test -z $c)'
+CapabilityBoundingSet=~CAP_CHOWN