mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-08 20:58:20 +03:00
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. (cherry picked from commit 9569e385036c05c0bf9fbccdbf3d131161398e2e) (cherry picked from commit 1325dfb5778dedd3ca5274d3383e7c27121fa60a)
9 lines
268 B
Desktop File
9 lines
268 B
Desktop File
[Unit]
|
|
Description=Test CAP_MKNOD capability for PrivateDevices=yes
|
|
|
|
[Service]
|
|
PrivateDevices=yes
|
|
# sed: remove dropped capabilities (cap_xxx-[epi]) from the output
|
|
ExecStart=/bin/sh -x -c '! capsh --print | sed -r "s/[^ ]+?\-[epi]+//g" | grep cap_mknod'
|
|
Type=oneshot
|