1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

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
This commit is contained in:
Ed Maste 2020-05-01 14:30:59 +00:00
parent 2b02de2c94
commit dd175b11d5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360535

View File

@ -449,7 +449,7 @@ protmax_status(struct thread *td, struct proc *p, int *data)
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;