diff options
author | Djalal Harouni <tixxdz@opendz.org> | 2016-11-02 23:02:28 +0100 |
---|---|---|
committer | Djalal Harouni <tixxdz@opendz.org> | 2016-11-03 08:38:28 +0100 |
commit | 5c67067f0e521aba061904c7bb3aa092281ef9c4 (patch) | |
tree | 06c31a1f0806304cf51f67c65745fdb6958563c8 /test | |
parent | 2b9ac11ed96f2823972a77fc7cb0c32981218429 (diff) |
test: test DynamicUser= with SupplementaryGroups=
Diffstat (limited to 'test')
-rw-r--r-- | test/test-execute/exec-dynamicuser-supplementarygroups.service | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test-execute/exec-dynamicuser-supplementarygroups.service b/test/test-execute/exec-dynamicuser-supplementarygroups.service new file mode 100644 index 0000000000..a47b7fab78 --- /dev/null +++ b/test/test-execute/exec-dynamicuser-supplementarygroups.service @@ -0,0 +1,8 @@ +[Unit] +Description=Test DynamicUser with SupplementaryGroups= + +[Service] +ExecStart=/bin/sh -x -c 'test "$$(id -G | cut -d " " --complement -f 1)" = "1 2 3"' +Type=oneshot +DynamicUser=yes +SupplementaryGroups=1 2 3 |