mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 18:55:40 +03:00
69b0740785
The nobody user/group may not synthesized by systemd. To run tests the functionalities in such situation, this adds tests by user/group by daemon, as it is expected to exists all environments.
10 lines
265 B
Desktop File
10 lines
265 B
Desktop File
[Unit]
|
|
Description=Test for AmbientCapabilities (daemon)
|
|
|
|
[Service]
|
|
ExecStart=/bin/sh -x -c 'c=$$(grep "CapAmb:" /proc/self/status); test "$$c" = "CapAmb: 0000000000003000"'
|
|
Type=oneshot
|
|
User=daemon
|
|
AmbientCapabilities=CAP_NET_ADMIN
|
|
AmbientCapabilities=CAP_NET_RAW
|