test: test DynamicUser= with SupplementaryGroups=

This commit is contained in:
Djalal Harouni
2016-11-03 08:38:28 +01:00
parent 2b9ac11ed9
commit 5c67067f0e
3 changed files with 10 additions and 0 deletions
@@ -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