summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-supplementarygroups-single-group-user.service
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-10-23 18:54:20 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-10-23 18:54:20 -0400
commit4e5a239fb86149ff8f370dbe99430e3244bfad44 (patch)
tree1d7852d06ebcfb39f5132eb28d8bb3c3ca4e5beb /test/test-execute/exec-supplementarygroups-single-group-user.service
parent7d78f7cea82dc7b4ced77f86a05124add2509390 (diff)
parent8b6903ad4d0dc94cd0098f453a4ea8ab24a4a3f7 (diff)
Merge pull request #4373 from endocode/djalal/fix-mountflags
Diffstat (limited to 'test/test-execute/exec-supplementarygroups-single-group-user.service')
-rw-r--r--test/test-execute/exec-supplementarygroups-single-group-user.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test-execute/exec-supplementarygroups-single-group-user.service b/test/test-execute/exec-supplementarygroups-single-group-user.service
new file mode 100644
index 0000000000..ed6276d303
--- /dev/null
+++ b/test/test-execute/exec-supplementarygroups-single-group-user.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Test for Supplementary Group with only one group and uid 1
+
+[Service]
+ExecStart=/bin/sh -x -c 'test "$$(id -G)" = "1" && test "$$(id -g)" = "1" && test "$$(id -u)" = "1"'
+Type=oneshot
+User=1
+Group=1
+SupplementaryGroups=1