summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-dynamicuser-fixeduser-one-supplementarygroup.service
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2016-11-03 11:48:28 +0100
committerGitHub <noreply@github.com>2016-11-03 11:48:28 +0100
commit34f139c52640f4791249e965a1d3d12be35077c1 (patch)
tree06c31a1f0806304cf51f67c65745fdb6958563c8 /test/test-execute/exec-dynamicuser-fixeduser-one-supplementarygroup.service
parentb2c82a7f2f7c8ae426a9208fb79c5abbd5e3181c (diff)
parent5c67067f0e521aba061904c7bb3aa092281ef9c4 (diff)
Merge pull request #4543 from endocode/djalal/fix-dynamicuser-supplementary-groups
core: intialize user aux groups and SupplementaryGroups= when DynamicUser= is set
Diffstat (limited to 'test/test-execute/exec-dynamicuser-fixeduser-one-supplementarygroup.service')
-rw-r--r--test/test-execute/exec-dynamicuser-fixeduser-one-supplementarygroup.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test-execute/exec-dynamicuser-fixeduser-one-supplementarygroup.service b/test/test-execute/exec-dynamicuser-fixeduser-one-supplementarygroup.service
new file mode 100644
index 0000000000..de1a6e7303
--- /dev/null
+++ b/test/test-execute/exec-dynamicuser-fixeduser-one-supplementarygroup.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Test DynamicUser with User= and SupplementaryGroups=
+
+[Service]
+ExecStart=/bin/sh -x -c 'test "$$(id -G)" = "1" && test "$$(id -g)" = "1" && test "$$(id -u)" = "1"'
+Type=oneshot
+User=1
+DynamicUser=yes
+SupplementaryGroups=1