Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Remove unused symbols from <sys/sysctl.h>



details:   https://anonhg.NetBSD.org/src/rev/5faaa927a14f
branches:  trunk
changeset: 365294:5faaa927a14f
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sat Aug 11 11:33:10 2018 +0000

description:
Remove unused symbols from <sys/sysctl.h>

Drop: P_PAXMPROTECT and P_PAXNOMPROTECT.

These values are unused and the proper way to check PaX MPROTECT is to use
CTL_PROC.pid().PROC_PID_PAXFLAGS and check CTL_PROC_PAXFLAGS_MPROTECT.

Proposed on current-users@.
OK from <christos>

diffstat:

 sys/sys/sysctl.h |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (18 lines):

diff -r e425a085f8d4 -r 5faaa927a14f sys/sys/sysctl.h
--- a/sys/sys/sysctl.h  Sat Aug 11 10:34:25 2018 +0000
+++ b/sys/sys/sysctl.h  Sat Aug 11 11:33:10 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.h,v 1.226 2018/05/16 20:21:39 joerg Exp $       */
+/*     $NetBSD: sysctl.h,v 1.227 2018/08/11 11:33:10 kamil Exp $       */
 
 /*
  * Copyright (c) 1989, 1993
@@ -632,8 +632,6 @@
 #define        P_STOPEXEC              0x01000000
 #define        P_STOPEXIT              0x02000000
 #define        P_SYSCALL               0x04000000
-#define        P_PAXMPROTECT           0x08000000
-#define        P_PAXNOMPROTECT         0x10000000
 
 /*
  * LWP compat flags.



Home | Main Index | Thread Index | Old Index