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/22017] New: make getusershell() to check /etc/shells is regular file


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

            Bug ID: 22017
           Summary: make getusershell() to check /etc/shells is regular
                    file
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: kerolasa at iki dot fi
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Created attachment 10373
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10373&action=edit
add check to getusershell() normal file is been read

Function does not work if someone puts in place of /etc/shells a symlink to
/dev/urandom for example. Fix is easy, various none-regular files should be
ignored. See attached patch how that could be dene.

-- 
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]