Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Oct 1996 09:08:07 -0700
From:      "Justin T. Gibbs" <gibbs@freefall.freebsd.org>
To:        matthew green <mrg@eterna.com.au>
Cc:        jdp@polstra.com, ache@nagual.ru, guido@gvr.win.tue.nl, thorpej@nas.nasa.gov, phk@critter.tfs.com, freebsd-hackers@freebsd.org, tech-userlevel@netbsd.org, Karl Denninger <karl@mcs.net>
Subject:   Re: cvs commit: src/lib/libc/db/hash hash_buf.c 
Message-ID:  <199610181608.JAA04117@freefall.freebsd.org>
In-Reply-To: Your message of "Fri, 18 Oct 1996 18:47:09 %2B1000." <199610180847.SAA17954@eterna.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
>
>   >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
===========================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610181608.JAA04117>