diff options
-rw-r--r-- | sys/kern/kern_priv.c | 2 | ||||
-rw-r--r-- | sys/sys/systm.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_priv.c b/sys/kern/kern_priv.c index 307d134..1190cd4 100644 --- a/sys/kern/kern_priv.c +++ b/sys/kern/kern_priv.c @@ -51,7 +51,7 @@ * userland programs, and should not be done without careful consideration of * the consequences. */ -int suser_enabled = 1; +static int suser_enabled = 1; SYSCTL_INT(_security_bsd, OID_AUTO, suser_enabled, CTLFLAG_RW, &suser_enabled, 0, "processes with uid 0 have privilege"); TUNABLE_INT("security.bsd.suser_enabled", &suser_enabled); diff --git a/sys/sys/systm.h b/sys/sys/systm.h index c523378..13b7ef7 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -46,7 +46,6 @@ #include <sys/stdint.h> /* for people using printf mainly */ extern int securelevel; /* system security level (see init(8)) */ -extern int suser_enabled; /* suser() is permitted to return 0 */ extern int cold; /* nonzero if we are doing a cold boot */ extern int rebooting; /* boot() has been called. */ |