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
Post a Comment