diff --git a/sys/kern/kern_priv.c b/sys/kern/kern_priv.c index 307d134e673..1190cd42e5b 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 c5233783eca..13b7ef7f549 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -46,7 +46,6 @@ #include /* 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. */