Klemens Nanni
6cdf74ca98
Revert "Omit privileged setgroups(2) call to test set[ug]id(2) to same user"
...
3283407897 (step)
:5:19
shows that it works on Linux, so undo the hack.
This reverts commit 12acd710be
.
2024-11-16 15:38:30 +03:00
Klemens Nanni
12acd710be
Omit privileged setgroups(2) call to test set[ug]id(2) to same user
...
Every user may change its user/group ID to the current one.
With an ugly hack, skip the superuser-only part of chuser()
to exercise this rest of the code path in regular tests.
2024-11-12 02:36:28 +03:00
Klemens Nanni
988cd0e207
Add chuser() tests
...
A bunch of negative cases for the userspace-side parser.
Since the actual set*(2) guts require root, skip accordingly.
2024-11-12 02:12:37 +03:00