elevate gdb privileges

elevate gdb privileges

Valery Reznic valery_reznic at yahoo.com
Mon Feb 27 13:08:51 IST 2012


Hi, Ido


suid root != everyone can use it

mkdir -m700 ~/for_setuid
Then copy gdb here and make it setuid root

Valery






>________________________________
> From: ik <idokan at gmail.com>
>To: linux-il <linux-il at cs.huji.ac.il> 
>Sent: Monday, February 27, 2012 12:33 PM
>Subject: elevate gdb privileges
> 
>Hello,
>
>I have a program that I write that uses user-space libraries that talk
>with kernel space, and I use an IDE for the development and debugging.
>
>The program requires to run as super user, but I do not want to run
>the whole IDE itself as super user, only gdb for this specific
>project, but the IDE
>does not allow me to do something like: /usr/bin/kdesu /usr/bin/gdb ...
>I also do not wish to provide suid to root, and allow every one to use
>gdb as root.
>
>Beside executing gdb myself with sudo, how would you recommend me to
>elevate user privileges for gdb on such case ?
>
>Thanks,
>Ido
>
>_______________________________________________
>Linux-il mailing list
>Linux-il at cs.huji.ac.il
>http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20120227/b4e19ebf/attachment.html>


More information about the Linux-il mailing list