From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7724 invoked by alias); 14 Apr 2008 13:43:01 -0000 Received: (qmail 7707 invoked by uid 22791); 14 Apr 2008 13:42:58 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.177) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 14 Apr 2008 13:42:41 +0000 Received: by wa-out-1112.google.com with SMTP id l35so2124129waf.12 for ; Mon, 14 Apr 2008 06:42:39 -0700 (PDT) Received: by 10.114.93.17 with SMTP id q17mr6874547wab.70.1208180559489; Mon, 14 Apr 2008 06:42:39 -0700 (PDT) Received: by 10.114.37.17 with HTTP; Mon, 14 Apr 2008 06:42:39 -0700 (PDT) Message-ID: <2379dacc0804140642j6fc7e626r76db7ec5c3e4734@mail.gmail.com> Date: Mon, 14 Apr 2008 16:32:00 -0000 From: "Michael Potter" To: "Reynolds, Brandon" Subject: Re: unable to attach to setuid program that as reverted it privilege Cc: gdb@sourceware.org In-Reply-To: <7ADDA4869AFB444695CDD37859452D5773AED1@emss04m21.us.lmco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7ADDA4869AFB444695CDD37859452D5773AED1@emss04m21.us.lmco.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00114.txt.bz2 On Mon, Apr 14, 2008 at 8:32 AM, Reynolds, Brandon wrote: > > > What did you mean by "_permanently_"? > I used setuid(non_root_user) while the effective user is root. This sets real, effective, and saved userids so that there is no returning to root. I confirm that in my code by doing a setuid(root) and hoping that it fails. -- Michael Potter