Re: setpeuid(pid_t, uid_t) proposal

From: Gianni Tedesco
Date: Tue Aug 24 2004 - 08:36:33 EST


On Mon, 2004-08-23 at 23:50 -0500, Jerry Haltom wrote:
> I want to propose a new base system function (and cooresponding
> syscall). I am tentivly calling this function setpeuid(). The function
> will be fairly simple:
>
> Only a process with uid 0 may call it. The first argument is a process
> id. The second argument is a uid. The function is effictivly the exact
> same as seteuid() except that it operates on another process. Very
> simple explanation, now here's why.

LOL pid_t? What if task calling the server dies before the server calls
setpeuid()? Some other users task may now get new credentials.

--
// Gianni Tedesco (gianni at scaramanga dot co dot uk)
lynx --source www.scaramanga.co.uk/scaramanga.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D

Attachment: signature.asc
Description: This is a digitally signed message part