This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/22017] New: make getusershell() to check /etc/shells is regular file
- From: "kerolasa at iki dot fi" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 27 Aug 2017 23:39:14 +0000
- Subject: [Bug libc/22017] New: make getusershell() to check /etc/shells is regular file
- Auto-submitted: auto-generated
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.