mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
ptrace(PT_VM_ENTRY): report max protection
(cherry picked from commit e90b2b7d6c)
This commit is contained in:
parent
a1ae801880
commit
32b3b01083
1 changed files with 3 additions and 1 deletions
|
|
@ -37,6 +37,7 @@
|
|||
#include <sys/ktr.h>
|
||||
#include <sys/limits.h>
|
||||
#include <sys/lock.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/mutex.h>
|
||||
#include <sys/reg.h>
|
||||
#include <sys/syscallsubr.h>
|
||||
|
|
@ -517,7 +518,8 @@ ptrace_vm_entry(struct thread *td, struct proc *p, struct ptrace_vm_entry *pve)
|
|||
pve->pve_start = entry->start;
|
||||
pve->pve_end = entry->end - 1;
|
||||
pve->pve_offset = entry->offset;
|
||||
pve->pve_prot = entry->protection;
|
||||
pve->pve_prot = entry->protection |
|
||||
PROT_MAX(entry->max_protection);
|
||||
|
||||
/* Backing object's path needed? */
|
||||
if (pve->pve_pathlen == 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue