]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-dynamicuser-supplementarygroups.service
9ee6154f953b01116a7a5eb0fd4f12aab56b9970
[thirdparty/systemd.git] / test / test-execute / exec-dynamicuser-supplementarygroups.service
1 [Unit]
2 Description=Test DynamicUser with SupplementaryGroups=
3
4 [Service]
5 ExecStart=/bin/sh -x -c 'HAVE=; for g in $$(id -G); do test "$$g" = "1" && HAVE=1; done; test "$$HAVE" -eq 1'
6 ExecStart=/bin/sh -x -c 'HAVE=; for g in $$(id -G); do test "$$g" = "2" && HAVE=1; done; test "$$HAVE" -eq 1'
7 ExecStart=/bin/sh -x -c 'HAVE=; for g in $$(id -G); do test "$$g" = "3" && HAVE=1; done; test "$$HAVE" -eq 1'
8 Type=oneshot
9 DynamicUser=yes
10 SupplementaryGroups=1 2 3