pkorotkov / google-coredumper

Automatically exported from code.google.com/p/google-coredumper
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Kernel Hardening breaks ptrace in ubuntu #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run the unit test under 2.6.35 or later

What is the expected output? What do you see instead?
Failure to create a core file.

What version of the product are you using? On what operating system?
google-coredumper-r31 on ubuntu 2.6.35

Please provide any additional information below.

https://wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening#ptrace

adding :
sys_prctl(PR_SET_PTRACER, clone_pid); 
to ListAllProcessThreads after the clone seems to work ( but there is a better 
way to deal with it, I'm sure )

Original issue reported on code.google.com by j...@cloudopt.com on 3 May 2011 at 3:37