From owner-freebsd-security@FreeBSD.ORG Sun Oct 7 18:53:27 2007 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F33916A419 for ; Sun, 7 Oct 2007 18:53:27 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from gnome.kiev.sovam.com (gnome.kiev.sovam.com [212.109.32.24]) by mx1.freebsd.org (Postfix) with ESMTP id 3431B13C447 for ; Sun, 7 Oct 2007 18:53:27 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay02.kiev.sovam.com ([62.64.120.197]) by gnome.kiev.sovam.com with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IebFm-000830-K6 for freebsd-security@freebsd.org; Sun, 07 Oct 2007 21:53:26 +0300 Received: from [212.82.216.226] (helo=deviant.kiev.zoral.com.ua) by relay02.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1IebFk-00089j-QJ for freebsd-security@freebsd.org; Sun, 07 Oct 2007 21:53:25 +0300 Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l97IrFAr072255; Sun, 7 Oct 2007 21:53:15 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1/Submit) id l97IrE44072254; Sun, 7 Oct 2007 21:53:14 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 7 Oct 2007 21:53:14 +0300 From: Kostik Belousov To: "Zane C.B." Message-ID: <20071007185314.GJ2180@deviant.kiev.zoral.com.ua> References: <20071007105258.2d4c2e37@vixen42> <47090895.9050202@nruns.com> <20071007122805.3853bffe@vixen42> <20071007180402.GI2180@deviant.kiev.zoral.com.ua> <20071007133917.73b5f665@vixen42> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dpynvXbW/eW9Tpc3" Content-Disposition: inline In-Reply-To: <20071007133917.73b5f665@vixen42> User-Agent: Mutt/1.4.2.3i X-Scanner-Signature: bb9f355b5be917825c280d06cf0e20ab X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 1563 [Oct 05 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: freebsd-security@freebsd.org, Jan M?nther Subject: Re: issetugid() for other procs X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Oct 2007 18:53:27 -0000 --dpynvXbW/eW9Tpc3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 07, 2007 at 01:39:17PM -0500, Zane C.B. wrote: > On Sun, 7 Oct 2007 21:04:02 +0300 > Kostik Belousov wrote: >=20 > > On Sun, Oct 07, 2007 at 12:28:05PM -0500, Zane C.B. wrote: > > > On Sun, 07 Oct 2007 18:25:57 +0200 > > > Jan M?nther wrote: > > >=20 > > > > man getuid, man geteuid. > > >=20 > > > This does work for other procs, only the one that is calling it. > > >=20 > > > Like I said initially I am looking to check if another proc has > > > run setuid, seteuid, or been executed or forked by one that has. > >=20 > > Note that what you trying to do is racy by definition. >=20 > Why is that? It seems like something that be useful instead of > something taboo. My interest in it is I am writing a database > connector interested in making it paranoid as possible. Because you do not control the execution of the other process. As consequence, value you get is outdated even before you start using it. --dpynvXbW/eW9Tpc3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHCSsZC3+MBN1Mb4gRAs5kAJwMvHZ5QuNdQtjz2TqhT+p6OlrUiwCfZVl3 tC67uh6NwzA+fZu559Qo/Fg= =GfVy -----END PGP SIGNATURE----- --dpynvXbW/eW9Tpc3--