[Pkg-shadow-devel] [oss-security] Re: subuid security patches for shadow package
Sebastian Krahmer
krahmer at suse.com
Mon Jul 25 08:03:31 UTC 2016
On Wed, Jul 20, 2016 at 11:48:52PM +0200, Nicolas François wrote:
> Hi,
>
> The first point looks like a non issue to me.
>
> getlogin() is used to differentiate users with the same UID.
> The result of getlogin() is checked: if it returns a username that do not
> have the UID returned by getuid(), it will be ignored.
>
>
> Best Regards,
> --
> Nekral
I agree that its not a severe issue. But its dubious code at best.
I couldnt even imagine someone would have usernames with different UID's?
Maybe such configs should not be encouraged and potential issues with
that discussed.
My understanding of secure coding is that getlogin() should not
be trusted. Having same username with multiple UIDs is also to be avoided
IMHO, since its asking for trouble (I dont know if thats some requirement
of LSB or POSIX or so?)
So, I am open for discussion about this point, as removing getlogin()
should not break valid configs. If it can be removed without breakage,
it should.
Sebastian
--
~ perl self.pl
~ $_='print"\$_=\47$_\47;eval"';eval
~ krahmer at suse.com - SuSE Security Team
More information about the Pkg-shadow-devel
mailing list