vmmap.py: fix yama/ptrace_scope command suggestion (Fixes #1768) (#1769)

This commit is contained in:
Disconnect3d 2023-06-26 15:46:48 +02:00 committed by GitHub
parent 44d75e3bd6
commit 8d0ccbc3eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)