diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-03-03 22:15:36 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-03-04 16:37:58 +0900 |
commit | b6dc25eebc1a0061fe62eca206b57ef21b33c154 (patch) | |
tree | 2b79e8bf7026590032c928b32c802d89d4bcdf3c /test/test-execute/exec-ambientcapabilities-nfsnobody.service | |
parent | cb77e122888182e7b73c8d7df7b35f9f47b439b1 (diff) | |
download | systemd-b6dc25eebc1a0061fe62eca206b57ef21b33c154.tar.gz |
test-execute: rename tests for AmbientCapabilities=
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.
Diffstat (limited to 'test/test-execute/exec-ambientcapabilities-nfsnobody.service')
-rw-r--r-- | test/test-execute/exec-ambientcapabilities-nfsnobody.service | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test-execute/exec-ambientcapabilities-nfsnobody.service b/test/test-execute/exec-ambientcapabilities-nfsnobody.service new file mode 100644 index 0000000000..614cfdd584 --- /dev/null +++ b/test/test-execute/exec-ambientcapabilities-nfsnobody.service @@ -0,0 +1,8 @@ +[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 |