mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 15:21:37 +03:00
9569e38503
Since libcap v2.29 the format of cap_to_text() has been changed which makes certain `test-execute` subtest fail. Let's remove the offending part of the output (dropped capabilities) to make it compatible with both the old and the new libcap.
9 lines
282 B
Desktop File
9 lines
282 B
Desktop File
[Unit]
|
|
Description=Test for CapabilityBoundingSet
|
|
|
|
[Service]
|
|
# sed: remove dropped capabilities (cap_xxx-[epi]) from the output
|
|
ExecStart=/bin/sh -x -c '! capsh --print | sed -r "s/[^ ]+?\-[epi]+//g" | grep "^Bounding set .*cap_chown"'
|
|
Type=oneshot
|
|
CapabilityBoundingSet=~CAP_CHOWN
|