public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libc/14516] New: ttyname incorrectly fails if procfs is not available @ 2012-08-24 8:51 siddhesh at redhat dot com 2012-08-24 8:54 ` [Bug libc/14516] " siddhesh at redhat dot com ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: siddhesh at redhat dot com @ 2012-08-24 8:51 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=14516 Bug #: 14516 Summary: ttyname incorrectly fails if procfs is not available Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: unassigned@sourceware.org ReportedBy: siddhesh@redhat.com CC: drepper.fsp@gmail.com Classification: Unclassified Description of problem: SSH chroot using pam_chroot.so does not work when there is no mounted /proc inside the chroot. The ssh server throws the following error in /var/log/secure: Aug 24 13:26:06 rawhide sshd[11735]: fatal: openpty returns device for which ttyname fails. while the client shows the following error and disconnects: Connection to localhost closed by remote host. Connection to localhost closed. This failure occurs because sshd calls ttyname() and fails due to /proc not being present inside the chroot. How reproducible: Always. Steps to Reproduce: 1. Set up a chroot: - Create the root folder structure (bin, lib, etc, var, dev, dev/pts) with essential binaries - Mount /dev/pts over /chroot/dev/pts 2. Set the password for user view 3. Add the following to /etc/pam.d/sshd: session required pam_chroot.so onerr=fail debug 4. ssh -1 view localhost Actual results: Connection to localhost closed by remote host. Connection to localhost closed. Expected results: User logs in. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/14516] ttyname incorrectly fails if procfs is not available 2012-08-24 8:51 [Bug libc/14516] New: ttyname incorrectly fails if procfs is not available siddhesh at redhat dot com @ 2012-08-24 8:54 ` siddhesh at redhat dot com 2012-08-24 8:55 ` siddhesh at redhat dot com ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: siddhesh at redhat dot com @ 2012-08-24 8:54 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=14516 --- Comment #1 from Siddhesh Poyarekar <siddhesh at redhat dot com> 2012-08-24 08:54:22 UTC --- Step 2. should read "Set the password for a newly created user 'view'" -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/14516] ttyname incorrectly fails if procfs is not available 2012-08-24 8:51 [Bug libc/14516] New: ttyname incorrectly fails if procfs is not available siddhesh at redhat dot com 2012-08-24 8:54 ` [Bug libc/14516] " siddhesh at redhat dot com @ 2012-08-24 8:55 ` siddhesh at redhat dot com 2012-08-30 12:05 ` siddhesh at redhat dot com ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: siddhesh at redhat dot com @ 2012-08-24 8:55 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=14516 Siddhesh Poyarekar <siddhesh at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at sourceware |siddhesh at redhat dot com |dot org | -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/14516] ttyname incorrectly fails if procfs is not available 2012-08-24 8:51 [Bug libc/14516] New: ttyname incorrectly fails if procfs is not available siddhesh at redhat dot com 2012-08-24 8:54 ` [Bug libc/14516] " siddhesh at redhat dot com 2012-08-24 8:55 ` siddhesh at redhat dot com @ 2012-08-30 12:05 ` siddhesh at redhat dot com 2014-06-17 6:53 ` fweimer at redhat dot com 2014-06-17 13:39 ` fweimer at redhat dot com 4 siblings, 0 replies; 6+ messages in thread From: siddhesh at redhat dot com @ 2012-08-30 12:05 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=14516 Siddhesh Poyarekar <siddhesh at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Siddhesh Poyarekar <siddhesh at redhat dot com> 2012-08-30 12:05:41 UTC --- Fixed in master. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/14516] ttyname incorrectly fails if procfs is not available 2012-08-24 8:51 [Bug libc/14516] New: ttyname incorrectly fails if procfs is not available siddhesh at redhat dot com ` (2 preceding siblings ...) 2012-08-30 12:05 ` siddhesh at redhat dot com @ 2014-06-17 6:53 ` fweimer at redhat dot com 2014-06-17 13:39 ` fweimer at redhat dot com 4 siblings, 0 replies; 6+ messages in thread From: fweimer at redhat dot com @ 2014-06-17 6:53 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=14516 Florian Weimer <fweimer at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |security- --- Comment #3 from Florian Weimer <fweimer at redhat dot com> --- Fixed in: https://www.sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=050af9c4e -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/14516] ttyname incorrectly fails if procfs is not available 2012-08-24 8:51 [Bug libc/14516] New: ttyname incorrectly fails if procfs is not available siddhesh at redhat dot com ` (3 preceding siblings ...) 2014-06-17 6:53 ` fweimer at redhat dot com @ 2014-06-17 13:39 ` fweimer at redhat dot com 4 siblings, 0 replies; 6+ messages in thread From: fweimer at redhat dot com @ 2014-06-17 13:39 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=14516 Florian Weimer <fweimer at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jnair at ensim dot com --- Comment #4 from Florian Weimer <fweimer at redhat dot com> --- *** Bug 3353 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-06-17 13:39 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-08-24 8:51 [Bug libc/14516] New: ttyname incorrectly fails if procfs is not available siddhesh at redhat dot com 2012-08-24 8:54 ` [Bug libc/14516] " siddhesh at redhat dot com 2012-08-24 8:55 ` siddhesh at redhat dot com 2012-08-30 12:05 ` siddhesh at redhat dot com 2014-06-17 6:53 ` fweimer at redhat dot com 2014-06-17 13:39 ` fweimer at redhat dot com
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).