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:
Allan Jude 2015-09-06 17:47:03 +00:00
parent 7ff2ee1244
commit dafe59a9ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287509

View File

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