This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unable to attach to setuid program that as reverted it privilege


On Mon, Apr 14, 2008 at 8:32 AM, Reynolds, Brandon
<brandon.reynolds@lmco.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]