Re: [PATCH] Prevent setting 32 uids/gids in the error range

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon Feb 17 2003 - 10:05:17 EST


On Mon, 2003-02-17 at 14:55, Alan Cox wrote:
> On Mon, 2003-02-17 at 07:41, Rusty Russell wrote:
> > Tridge noticed that getegid() was returning EPERM.
> >
> > I used -1000 since that's what PTR_ERR uses, but i386 _syscall macros
> > use -125: I don't suppose it really matters.
>
> Thats a bug in the interface. getegid/getgid/setegid/setuid() is not permitted to fail.

I meant geteuid/getuid not set* - set* can fail.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Feb 23 2003 - 22:00:17 EST