Page MenuHomePhabricator

Always use prctl(PR_SET_PTRACER)

Authored by glandium on Nov 7 2017, 1:00 AM.



Sufficiently old Linux kernel headers don't provide the PR_SET_PTRACER, but we can still call prctl with it if the runtime kernel is newer. Even if it's not, prctl will only return EINVAL.

Patch by Mike Hommey <>

Diff Detail

Event Timeline

glandium created this revision.Nov 7 2017, 1:00 AM
glandium updated this revision to Diff 121983.Nov 7 2017, 2:10 PM

Updated wording.

eugenis accepted this revision.Nov 7 2017, 2:26 PM
This revision is now accepted and ready to land.Nov 7 2017, 2:26 PM
sylvestre.ledru edited the summary of this revision. (Show Details)Nov 7 2017, 11:25 PM