Skip to content

Instantly share code, notes, and snippets.

@rshipp
Created November 18, 2014 20:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rshipp/bea1557983fab131b986 to your computer and use it in GitHub Desktop.
Save rshipp/bea1557983fab131b986 to your computer and use it in GitHub Desktop.
Disregard the Yama ptrace restriction. (#include "noyama.h")
#ifndef NOYAMA_H
#define NOYAMA_H
#include <sys/prctl.h>
prctl( PR_SET_PTRACER, PR_SET_PTRACER_ANY, 0, 0, 0 );
#endif
@rshipp
Copy link
Author

rshipp commented Nov 18, 2014

This is probably a bad idea. You should call prctl manually yourself instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment