> > | 4) Could setuid(geteuid()) but that doesn't buy very much.
> > 
> > That should stop the user from killing qmail-queue, methinks.
> 
> It doesn't buy much because there is still a time when uid != euid,
> and the signal can arrive then.

But the temporary file does not exist yet.

> I thought more about my original suggestion.  It's bunk because it
> still allows the leaving behind of a junk mess file.

Not if you know what you're doing.  Reset the userid and the session id,
then create your temporary file.

Reply via email to