Subject: Re: cvs commit: src/lib/libc/db/hash hash_buf.c
To: matthew green <mrg@eterna.com.au>
From: Justin T. Gibbs <gibbs@freefall.freebsd.org>
List: tech-userlevel
Date: 10/18/1996 09:08:07
>
> >A program which calls setuid() isn't SUID any more. Once done, that's
> >terminal (and can't be "recalled").
>
> The saved UID is not perterbed which allows you to determine that the
> program was setuid.
>
>setuid() changes the effective, real and saved user ids. RTFM if you
>don't believe me.
I miss read a portion of the daemon book, my appologies.
>the correct way to check if a process was started setuid or setgid is
>to check the SUGID flag.
I should have simply looked at the source. <sigh>
--
Justin T. Gibbs
===========================================
FreeBSD: Turning PCs into workstations
===========================================