https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288751

--- Comment #2 from [email protected] ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=babab49eee9472f628d774996de13d13d296c8c0

commit babab49eee9472f628d774996de13d13d296c8c0
Author:     Kyle Evans <[email protected]>
AuthorDate: 2025-08-12 12:14:38 +0000
Commit:     Kyle Evans <[email protected]>
CommitDate: 2025-08-12 12:30:23 +0000

    chroot: don't setgroups() without -G having been specified

    We previously would not have setgroups() at all, but now we would drop
    our supplementary groups every time.  This broke chroot -n, probably
    among other things.  We need tests here, but lets unbreak things first.

    A future change may try to setgroups(2) when -u is specified in addition
    to -G, so predicate the call on gidlist and don't populate that without
    a grouplist.

    PR:             288751
    Fixes:  48fd05999b0f ("chroot: don't clobber the egid [...]")

 usr.sbin/chroot/chroot.c | 43 ++++++++++++++++++++++++++-----------------
 1 file changed, 26 insertions(+), 17 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to