util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix chsh when called as root
@ 2019-09-21 18:50 Quentin Rameau
  2019-09-21 18:50 ` [PATCH 1/2] lib/pwdutils: add xgetpwuid Quentin Rameau
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Quentin Rameau @ 2019-09-21 18:50 UTC (permalink / raw)
  To: util-linux

Hello,

Because chsh was using getpwuid/getpwnam, there was an issue with
subsequent call to readline with tilde expansion which would also call
the same function and overwrite the getpwuid/getpwnam internal storage
struct passwd, replacing passed username results.



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

end of thread, other threads:[~2019-09-26 21:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-21 18:50 [PATCH 0/2] Fix chsh when called as root Quentin Rameau
2019-09-21 18:50 ` [PATCH 1/2] lib/pwdutils: add xgetpwuid Quentin Rameau
2019-09-21 18:50 ` [PATCH 2/2] chsh: replace getpw unsafe functions with xgetpw Quentin Rameau
2019-09-26 13:57 ` [PATCH 0/2] Fix chsh when called as root Karel Zak
2019-09-26 21:34   ` Quentin Rameau

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 NNTP newsgroup(s).