Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 May 2020 14:30:59 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r360535 - head/sys/kern
Message-ID:  <202005011430.041EUx7b035154@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri May  1 14:30:59 2020
New Revision: 360535
URL: https://svnweb.freebsd.org/changeset/base/360535

Log:
  correct procctl(PROC_PROTMAX_STATUS _NOFORCE return
  
  Previously procctl(PROC_PROTMAX_STATUS, ... used the PROC_ASLR_NOFORCE
  macro for the "system-wide configured policy" status, instead of
  PROC_PROTMAX_NOFORCE.
  
  They both have a value of 3, so no functional change.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/kern/kern_procctl.c

Modified: head/sys/kern/kern_procctl.c
==============================================================================
--- head/sys/kern/kern_procctl.c	Fri May  1 13:47:13 2020	(r360534)
+++ head/sys/kern/kern_procctl.c	Fri May  1 14:30:59 2020	(r360535)
@@ -449,7 +449,7 @@ protmax_status(struct thread *td, struct proc *p, int 
 
 	switch (p->p_flag2 & (P2_PROTMAX_ENABLE | P2_PROTMAX_DISABLE)) {
 	case 0:
-		d = PROC_ASLR_NOFORCE;
+		d = PROC_PROTMAX_NOFORCE;
 		break;
 	case P2_PROTMAX_ENABLE:
 		d = PROC_PROTMAX_FORCE_ENABLE;



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