Skip to content
Snippets Groups Projects
Commit c6dc656a authored by hjk's avatar hjk
Browse files

debugger: proactively attempt to work around ubuntu's "kernel hardening" attempts

parent ef1fd91f
No related branches found
No related tags found
No related merge requests found
#include <unistd.h>
#include <sys/prctl.h>
#include <sys/types.h>
int _init(void)
{
prctl(0x59616d61, getppid(), 0, 0, 0);
puts("eeks\n");
return 0;
}
include(../../qtcreatorlibrary.pri)
TEMPLATE = lib
TARGET = ptracepreload
CONFIG += shared
CONFIG -= qt
DESTDIR = $$IDE_LIBRARY_PATH
QMAKE_LFLAGS *= -nostdlib -ldl -lc
SOURCES = ptracepreload.c
......@@ -40,6 +40,10 @@ SUBDIRS = plugin_coreplugin \
plugin_macros \
debugger/dumper.pro
linux-* {
SUBDIRS += debugger/ptracepreload.pro
}
include(../../qtcreator.pri)
contains(QT_CONFIG, declarative) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment