test/testdata/test-execute/exec-capabilityboundingset-invert.service
raw| 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 | [Unit] |
| 3 | Description=Test for CapabilityBoundingSet |
| 4 | |
| 5 | [Service] |
| 6 | # sed: remove dropped (cap_xxx-[epi]) and IAB capabilities from the output |
| 7 | ExecStart=bash -x -c '! capsh --print | sed -re "s/[^ ]+?\-[epi]+//g" -e '/IAB/d' | grep "^Bounding set .*cap_chown"' |
| 8 | Type=oneshot |
| 9 | CapabilityBoundingSet=~CAP_CHOWN |