Explorar el Código

Add check for ptrace scope

master
JustAnotherArchivist hace 6 años
padre
commit
4f3cfc6e56
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. +5
    -0
      kill-wpull-connections

+ 5
- 0
kill-wpull-connections Ver fichero

@@ -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' \


Cargando…
Cancelar
Guardar