Fix inverted output re: stack protection no-execute flag in procstat(1)
PR: 196110 Submitted by: Joerg Pernfuss <code.jpe@gmail.com> Approved by: bapt (mentor) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D3576
This commit is contained in:
parent
7ff2ee1244
commit
dafe59a9ec
@ -165,11 +165,11 @@ procstat_auxv(struct procstat *procstat, struct kinfo_proc *kipp)
|
||||
if ((auxv[i].a_un.a_val & VM_PROT_EXECUTE) != 0)
|
||||
xo_emit("{dw:/%s}{Lw:/%-16s/%s}"
|
||||
"{:AT_STACKPROT/%s}\n", prefix,
|
||||
"AT_STACKPROT", "NONEXECUTABLE");
|
||||
"AT_STACKPROT", "EXECUTABLE");
|
||||
else
|
||||
xo_emit("{dw:/%s}{Lw:/%-16s/%s}"
|
||||
"{:AT_STACKPROT/%s}\n", prefix,
|
||||
"AT_STACKPROT", "EXECUTABLE");
|
||||
"AT_STACKPROT", "NONEXECUTABLE");
|
||||
break;
|
||||
#ifdef AT_TIMEKEEP
|
||||
case AT_TIMEKEEP:
|
||||
|
Loading…
Reference in New Issue
Block a user