summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-dynamicuser-fixeduser.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.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.service')
-rw-r--r--test/test-execute/exec-dynamicuser-fixeduser.service8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test-execute/exec-dynamicuser-fixeduser.service b/test/test-execute/exec-dynamicuser-fixeduser.service
new file mode 100644
index 0000000000..1d84af02ed
--- /dev/null
+++ b/test/test-execute/exec-dynamicuser-fixeduser.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Test DynamicUser with User=
+
+[Service]
+ExecStart=/bin/sh -x -c 'test "$$(id -G)" = "1" && test "$$(id -g)" = "1" && test "$$(id -u)" = "1"'
+Type=oneshot
+User=1
+DynamicUser=yes