Commit 76606369 authored by hjk's avatar hjk

Debugger: Mention possibility to globally disable ptrace_scope.

Change-Id: I71cb34635711477508bda08c84bd998344346142
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent ab8878fd
...@@ -1327,8 +1327,10 @@ ...@@ -1327,8 +1327,10 @@
However, the usefulness of this security measure seems dubious, However, the usefulness of this security measure seems dubious,
because this feature can be easily disabled. With root permissions, you can because this feature can be easily disabled. With root permissions, you can
disable the feature immediately by writing \c{0} into disable the feature temporarily by writing \c{0} into
\c{/proc/sys/kernel/yama/ptrace_scope}. Even if you do not have elevated \c{/proc/sys/kernel/yama/ptrace_scope} or permanently by changing
the value in \c{/etc/sysctl.d/10-ptrace.conf}.
Even if you do not have elevated
permissions, you can disable the feature later by adding a library that permissions, you can disable the feature later by adding a library that
calls \c{prctl(0x59616d61, getppid(), 0, 0, 0);}, such as the one in calls \c{prctl(0x59616d61, getppid(), 0, 0, 0);}, such as the one in
\c{$QTCREATORDIR/lib/libptracepreload.so} to the LD_PRELOAD environment. \c{$QTCREATORDIR/lib/libptracepreload.so} to the LD_PRELOAD environment.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment