This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/22331] New: [linux only] remove getpt() et all fallback to BSD ptys


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

            Bug ID: 22331
           Summary: [linux only] remove getpt() et all fallback to BSD
                    ptys
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: crrodriguez at opensuse dot org
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Since at least a decade according to google, major distributions  build kernels
with either BSD legacy pty disabled (like Fedora 4 or later)  or enabled but
set the amount of legacy pty to zero..equivalent to boot a system with
pty.legacy_count=0, this all makes them either not available or unusable by
default without the system administrator intervention. 

yet all glibc functions that call getpt() may fallback to them when they are
for all practical effects unavailable.


It is therefore suggested to remove all the fallback code and the code that
changes the pty permissions/owner in grantpt which is also superflous since
devpts does granpt() for you without any library support.

Also unnecessary are the checks in posix_openpt that check if dev/pts in
mounted,exists or whatever precondition.. just try opening /dev/ptmx without
/dev/pts mounted and you will find open syscall fails as it should with ENODEV.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]