mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
![Yu Watanabe](/assets/img/avatar_default.png)
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.
9 lines
239 B
Desktop File
9 lines
239 B
Desktop File
[Unit]
|
|
Description=Test for AmbientCapabilities
|
|
|
|
[Service]
|
|
ExecStart=/bin/sh -x -c 'c=$$(grep "CapAmb:" /proc/self/status); test "$$c" = "CapAmb: 0000000000003000"'
|
|
Type=oneshot
|
|
User=nfsnobody
|
|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW
|