summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-dynamicuser-supplementarygroups.service
blob: e3549c22c9c48c58317f7ef1153d011c90a44002 (plain)
1
2
3
4
5
6
7
8
9
10
[Unit]
Description=Test DynamicUser with SupplementaryGroups=

[Service]
ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "1" && HAVE=1; done; test "$$HAVE" -eq 1'
ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "2" && HAVE=1; done; test "$$HAVE" -eq 1'
ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "3" && HAVE=1; done; test "$$HAVE" -eq 1'
Type=oneshot
DynamicUser=yes
SupplementaryGroups=1 2 3