Skip to content

Commit

Permalink
vmmap.py: fix yama/ptrace_scope command suggestion (Fixes pwndbg#1768) (
Browse files Browse the repository at this point in the history
  • Loading branch information
disconnect3d committed Jun 26, 2023
1 parent 44d75e3 commit 8d0ccbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwndbg/gdblib/vmmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def kernel_vmmap_via_page_tables():
print(
M.error(
"Permission error when attempting to parse page tables with gdb-pt-dump.\n"
+ "Either change the kernel-vmmap setting, re-run GDB as root, or disable `ptrace_scope` (`echo 0 | sudo tee /proc/sys/kernel/yama`)"
+ "Either change the kernel-vmmap setting, re-run GDB as root, or disable `ptrace_scope` (`echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope`)"
)
)
return tuple(retpages)
Expand Down

0 comments on commit 8d0ccbc

Please sign in to comment.