mirror of
https://github.com/systemd/systemd
synced 2024-10-15 20:45:09 +00:00
b6dc25eebc
The unit files for test-execute are named like `exec-(setting-name-in-lower-character)-(optional-text).service`. However, test units for AmbientCapabilities= are not following this. So, let's rename them for the consistency. This does not change anything in the functionality of the test.
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
|