Page 1 of 1

grsec + software development

PostPosted: Tue Dec 14, 2004 7:10 pm
by cmouse
grsec: From 62.237.194.186: (default:D:/usr/bin/gdb) denied ptrace of /home/cmouse/projects/HBS/hbs(hbs:15102) by /usr/bin/gdb[gdb:21410] uid/euid:1000/1000 gid/egid:1000/1000, parent /home/cmouse/projects/HBS/hbs[hbs:15102] uid/euid:1000/1000 gid/egid:1000/1000

Can I somehow allow certain users to be exempt of ptrace restrictions so that they can debug their processes using gdb attach. I can make gdb debug stuff if they are started within gdb, but if I try to attach to something, I get that. Is there a way to allow it to attach to processes?

PostPosted: Wed Dec 15, 2004 1:15 am
by spender
in /etc/grsec/policy:

# new subject modes:
# r -> relax ptrace restrictions (allows process to ptrace processes
# other than its own descendants)

-Brad

PostPosted: Wed Dec 15, 2004 1:52 am
by cmouse
Thank you for pointing this out =)