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

2024-02-21 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277210 Mark Linimon changed: What|Removed |Added Assignee|b...@freebsd.org|j...@freebsd.org -- You are

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

2024-02-21 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277210 --- Comment #4 from johannes.ku...@gmail.com --- (In reply to Michael Osipov from comment #3) Correct, and that's exactly where I'm coming from. I've a GO webservice controlled by daemon(8) with '-u www' flag set and on jail start-up the

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

2024-02-21 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277210 --- Comment #3 from Michael Osipov --- (In reply to johannes.kunde from comment #2) The second case is problematic because if you do a su(1) or daemon(8) it will fail and depending on the code the executable might exit. -- You are

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

2024-02-21 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277210 --- Comment #2 from johannes.ku...@gmail.com --- That's how a 'service getcwd start' looks like: Feb 21 10:55:07 testjail getcwd[4421]: Current working dir: / That's how a (re)start of the jail looks like: Feb 21 10:55:25 testjail

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

2024-02-21 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277210 Michael Osipov changed: What|Removed |Added CC||micha...@freebsd.org --- Comment

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

2024-02-21 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277210 Bug ID: 277210 Summary: jail(8): exec.clean retrieves PWD from user info (can cause services to crash on jail start-up) Product: Base System Version: Unspecified