shell - Can gdb debug suid root programs? -


i did program call setuid(0) , execve("/bin/bash",null,null).

then did chown root:root a.out && chmod +s a.out

when execute ./a.out root shell. when gdb a.out starts process normal user, , launch user shell.

so... can debug suided root program?

only running gdb root. (in other words, no.)

for security reasons, normal users not allowed trace processes belonging other users, root.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -