summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-02-28 10:44:39 +0000
committerrwatson <rwatson@FreeBSD.org>2009-02-28 10:44:39 +0000
commit24ca141ec70a3d76fd6bf5cff5521ec69c1d6d55 (patch)
tree657ec781f2370719b371c92adbc150f02aa32b44
parent00646e6e144be3a350b5f99a9394235bc93bc096 (diff)
downloadFreeBSD-src-24ca141ec70a3d76fd6bf5cff5521ec69c1d6d55.zip
FreeBSD-src-24ca141ec70a3d76fd6bf5cff5521ec69c1d6d55.tar.gz
Remove PRIV_ROOT -- all system privileges must now be explicitly named
in support of forthcoming work on a fine-grained privilege mechanism. Facilitated by: bz, thompsa, rink
-rw-r--r--sys/sys/priv.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/sys/priv.h b/sys/sys/priv.h
index b242792..6609657 100644
--- a/sys/sys/priv.h
+++ b/sys/sys/priv.h
@@ -52,13 +52,7 @@
/*
* Track beginning of privilege list.
*/
-#define _PRIV_LOWEST 0
-
-/*
- * PRIV_ROOT is a catch-all for as yet unnamed privileges. No new
- * references to this privilege should be added.
- */
-#define PRIV_ROOT 1 /* Catch-all during development. */
+#define _PRIV_LOWEST 1
/*
* The remaining privileges typically correspond to one or a small
@@ -67,6 +61,7 @@
* privileges, such as the ability to reboot, and then loosely by
* subsystem, indicated by a subsystem name.
*/
+#define _PRIV_ROOT 1 /* Removed. */
#define PRIV_ACCT 2 /* Manage process accounting. */
#define PRIV_MAXFILES 3 /* Exceed system open files limit. */
#define PRIV_MAXPROC 4 /* Exceed system processes limit. */
OpenPOWER on IntegriCloud