aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2007-07-02 14:03:29 +0000
committerRobert Watson <rwatson@FreeBSD.org>2007-07-02 14:03:29 +0000
commitbc6eca2432906301de65dc51e595bd6d1772bd1a (patch)
treee28ddcaae8bdad90bd226225f999a1a17bfbd4f6
parent2c5d31d55661ef14b1c9a5ed7dca5e9b121309ff (diff)
Notes
-rw-r--r--sys/kern/kern_priv.c2
-rw-r--r--sys/sys/systm.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_priv.c b/sys/kern/kern_priv.c
index 307d134e6735..1190cd42e5bb 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 c5233783eca3..13b7ef7f5495 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. */