[Bug 277210] jail(8): exec.clean retrieves PWD from user info (can cause services to crash on jail start-up)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 22 Feb 2024 02:12:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277210

Jamie Gritton <jamie@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamie@FreeBSD.org
             Status|New                         |Open

--- Comment #5 from Jamie Gritton <jamie@FreeBSD.org> ---
While it does make sense to root from the jail's root under exec.clean, it
unfortunately clashes with a decade of current practice.

I'll consider a change, and see what people think, but I can't guarantee it'll
happen given the long history.  It seems reasonable that if a user is specified
(even directly like -U root), then it would still chdir to its home, but in the
absence of a user, starting in "/" would in fact be the most expected outcome.

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