mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
c725631f4b
grep already indicates if it matched anything by return value. Additional advantage is then that if the test fails, the unexpected matching lines are visible in the log output.
8 lines
184 B
Desktop File
8 lines
184 B
Desktop File
[Unit]
|
|
Description=Test for CapabilityBoundingSet
|
|
|
|
[Service]
|
|
ExecStart=/bin/sh -x -c '! capsh --print | grep "^Bounding set .*cap_chown"'
|
|
Type=oneshot
|
|
CapabilityBoundingSet=~CAP_CHOWN
|