| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
[Unit] |
| 3 |
Description=Test DynamicUser with static User= whose uid and gid are different |
| 4 |
# On Ubuntu or Debian, user games has uid==5 and gid==60. |
| 5 |
# On Alpine/postmarketOS, the user 'games' in the 'games' and 'users' groups. |
| 6 |
|
| 7 |
[Service] |
| 8 |
Type=oneshot |
| 9 |
ExecStart=bash -x -c '[[ "$$(id -nG)" =~ "games" ]] && test "$$(id -ng)" = "games" && test "$$(id -nu)" = "games"' |
| 10 |
# Multiple ExecStart= lines causes the issue #9702. |
| 11 |
ExecStart=bash -x -c '[[ "$$(id -nG)" =~ "games" ]] && test "$$(id -ng)" = "games" && test "$$(id -nu)" = "games"' |
| 12 |
DynamicUser=yes |
| 13 |
User=games |
| 14 |
ReadWritePaths=-/coverage |