mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
e5ba1d324d
CAP_NET_ADMIN is somtrimes dropped by container runtime. This changes to use CAP_CHOWN instead of CAP_NET_ADMIN, as it is less likely to be dropped.
9 lines
241 B
Desktop File
9 lines
241 B
Desktop File
[Unit]
|
|
Description=Test for AmbientCapabilities (daemon)
|
|
|
|
[Service]
|
|
ExecStart=/bin/sh -x -c 'c=$$(grep "CapAmb:" /proc/self/status); test "$$c" = "CapAmb: 0000000000002001"'
|
|
Type=oneshot
|
|
User=daemon
|
|
AmbientCapabilities=CAP_CHOWN CAP_NET_RAW
|