]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-supplementarygroups-multiple-groups-withgid.service
Merge pull request #10152 from yuwata/udev-use-extract
[thirdparty/systemd.git] / test / test-execute / exec-supplementarygroups-multiple-groups-withgid.service
1 [Unit]
2 Description=Test for Supplementary Group with multiple groups and Group=1
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 ExecStart=/bin/sh -x -c 'test "$$(id -g)" = "1" && test "$$(id -u)" = "0"'
9 Type=oneshot
10 Group=1
11 SupplementaryGroups=1 2 3