From owner-freebsd-hackers Fri Oct 18 01:48:42 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA07453 for hackers-outgoing; Fri, 18 Oct 1996 01:48:42 -0700 (PDT) Received: from eterna.com.au (splode.mame.mu.OZ.AU [128.250.209.121]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id BAA07445 for ; Fri, 18 Oct 1996 01:48:36 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by eterna.com.au (8.7.5/8.7.3) with SMTP id SAA17954; Fri, 18 Oct 1996 18:47:10 +1000 (EST) Message-Id: <199610180847.SAA17954@eterna.com.au> X-Authentication-Warning: splode.eterna.com.au: Host localhost [127.0.0.1] didn't use HELO protocol To: "Justin T. Gibbs" 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 From: matthew green Subject: Re: cvs commit: src/lib/libc/db/hash hash_buf.c In-reply-to: Your message of "Thu, 17 Oct 1996 23:10:46 MST." <199610180610.XAA28738@freefall.freebsd.org> Date: Fri, 18 Oct 1996 18:47:09 +1000 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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. the correct way to check if a process was started setuid or setgid is to check the SUGID flag.