mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03: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
259 B
Desktop File
10 lines
259 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
|
|
AmbientCapabilities=CAP_NET_RAW
|