From owner-freebsd-current Wed Feb 5 15: 2: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C92A637B401 for ; Wed, 5 Feb 2003 15:02:07 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5019243FDF for ; Wed, 5 Feb 2003 15:02:07 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0205.cvx21-bradley.dialup.earthlink.net ([209.179.192.205] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18gYYO-0007Y3-00; Wed, 05 Feb 2003 15:02:04 -0800 Message-ID: <3E419743.6144BE0B@mindspring.com> Date: Wed, 05 Feb 2003 14:59:15 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Anoop Ranganath , freebsd-current@freebsd.org Subject: Re: tmpfile breakage on setuid executables References: <00e201c2cd5b$14f31c30$0c02040a@ranganath> <3E41846A.39AAE406@mindspring.com> <015c01c2cd60$7b6dc0a0$0c02040a@ranganath> <3E418C3C.F4B99C78@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a41934379de7efe2c0a2744251bd53d2ae387f7b89c61deb1d350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > We need to know how we think it's supposed to work, not how you > think it's supposed to work to determine if the error is in the > code OR in the fact some old bug was fixed going from 4.7->5.0, > and the fix is biting you, OR it's a real bug. For anyone who cares: Additional information was provided off-list. The problem was indeed that "setuid(geteuid());" was missing from the program. Apparently, there was a bug fixed in 4.7 -> 5.0, where the effective UID was being tested instead of the real UID. This is probably something that someone should MFC. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message