[Bug 288751] chroot -n fails with "setgroups: Operation not permitted" when security.bsd.unprivileged_chroot=1

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 12 Aug 2025 12:36:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288751

Kyle Evans <kevans@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Closed
         Resolution|---                         |FIXED
           Assignee|bugs@FreeBSD.org            |kevans@freebsd.org

--- Comment #3 from Kyle Evans <kevans@freebsd.org> ---
(In reply to Darrin Smith from comment #0)

Sorry about that! Thanks for the diagnosis- I fixed it slightly differently to
account for future changes I'd like to consider. Notably, we have another PR
buried somewhere that points out that it'd probably be nice if -u used that
user's primary and supplementary groups by default, unless overridden by -g/-G.
 That seems like a sensible change and would give us one other spot we might
set the gidlist.

I'll follow up with some tests later this week.  This hadn't been MFCed yet, so
it will go together with the original.

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