public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/28377] New: closefrom_fallback fails when /proc/self/fd is not present, which causes unexpected behavior with openssh
@ 2021-09-22 22:35 william.wilson at canonical dot com
  2021-09-22 22:37 ` [Bug libc/28377] " william.wilson at canonical dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: william.wilson at canonical dot com @ 2021-09-22 22:35 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28377

            Bug ID: 28377
           Summary: closefrom_fallback fails when /proc/self/fd is not
                    present, which causes unexpected behavior with openssh
           Product: glibc
           Version: 2.34
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: william.wilson at canonical dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

A valid use case of sshd is to run in a "chroot" that actually looks nothing
like a root filesystem. If this is attempted in a kernel that does not
implement the close_range syscall (5.8 or older) the fallback_closefrom
function in glibc 2.34 looks for /proc/self/fd and returns an error if it is
not found. This implementation may want to consider scenarios where
/proc/self/fd is not present.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-27 13:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22 22:35 [Bug libc/28377] New: closefrom_fallback fails when /proc/self/fd is not present, which causes unexpected behavior with openssh william.wilson at canonical dot com
2021-09-22 22:37 ` [Bug libc/28377] " william.wilson at canonical dot com
2021-09-22 23:07 ` michael.hudson at canonical dot com
2021-09-27 13:18 ` adhemerval.zanella at linaro dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).