aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2016-11-02 23:02:28 +0100
committerDjalal Harouni <tixxdz@opendz.org>2016-11-03 08:38:28 +0100
commit5c67067f0e521aba061904c7bb3aa092281ef9c4 (patch)
tree06c31a1f0806304cf51f67c65745fdb6958563c8 /test/test-execute/exec-dynamicuser-supplementarygroups.service
parenttest: test DynamicUser= with a fixed user (diff)
downloadsystemd-5c67067f0e521aba061904c7bb3aa092281ef9c4.tar.gz
systemd-5c67067f0e521aba061904c7bb3aa092281ef9c4.tar.bz2
systemd-5c67067f0e521aba061904c7bb3aa092281ef9c4.zip
test: test DynamicUser= with SupplementaryGroups=
Diffstat (limited to 'test/test-execute/exec-dynamicuser-supplementarygroups.service')
-rw-r--r--test/test-execute/exec-dynamicuser-supplementarygroups.service8
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 000000000..a47b7fab7
--- /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