[Bug 3349] Test sshd in chroot fails when syscall close_range is undefined and openssh is built with glibc 2.34

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Oct 8 20:01:51 AEDT 2021


--- Comment #6 from Florian Weimer <fweimer at redhat.com> ---
(In reply to Darren Tucker from comment #5)
> Created attachment 3550 [details]
> shim closefrom and check kernel version

This patch is not the right way to do this. You should call close_range
(either the glibc wrapper or the system call via the generic syscall
function) and perform emulation as a fallback. Failure with close_range
(including lack of kernel support) does not terminate the process.

You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.

More information about the openssh-bugs mailing list