[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:44:19 AEDT 2021


https://bugzilla.mindrot.org/show_bug.cgi?id=3349

Darren Tucker <dtucker at dtucker.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #3550|0                           |1
        is obsolete|                            |

--- Comment #7 from Darren Tucker <dtucker at dtucker.net> ---
Created attachment 3551
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3551&action=edit
use close_range with fallback

(In reply to Florian Weimer from comment #6)
> 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.

oh, I didn't realise close_range was exposed by glibc.

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


More information about the openssh-bugs mailing list