Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Sep 2015 17:47:04 +0000 (UTC)
From:      Allan Jude <allanjude@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287509 - head/usr.bin/procstat
Message-ID:  <201509061747.t86Hl4k1062797@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: allanjude
Date: Sun Sep  6 17:47:03 2015
New Revision: 287509
URL: https://svnweb.freebsd.org/changeset/base/287509

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

Modified:
  head/usr.bin/procstat/procstat_auxv.c

Modified: head/usr.bin/procstat/procstat_auxv.c
==============================================================================
--- head/usr.bin/procstat/procstat_auxv.c	Sun Sep  6 17:36:09 2015	(r287508)
+++ head/usr.bin/procstat/procstat_auxv.c	Sun Sep  6 17:47:03 2015	(r287509)
@@ -165,11 +165,11 @@ procstat_auxv(struct procstat *procstat,
 			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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509061747.t86Hl4k1062797>