Browse Source

Add check for ptrace scope

master
JustAnotherArchivist 6 years ago
parent
commit
4f3cfc6e56
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      kill-wpull-connections

+ 5
- 0
kill-wpull-connections View File

@@ -48,6 +48,11 @@ then
exit 1
fi

if [[ -e /proc/sys/kernel/yama/ptrace_scope && "$(< /proc/sys/kernel/yama/ptrace_scope)" != "0" && $EUID -ne 0 ]]
then
echo "Warning: /proc/sys/kernel/yama/ptrace_scope is not zero. You likely need to run this script as root."
fi

gdb -batch -batch-silent \
-ex "attach ${wpullPid}" \
-ex 'python import subprocess' \


Loading…
Cancel
Save