summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-05-22 09:59:34 +0000
committerbz <bz@FreeBSD.org>2009-05-22 09:59:34 +0000
commita75d175b4f1d7335efc89a91eac2db17f903ec5e (patch)
treee86e72997371b7c2edc2d42abe523001ab30b6d8
parentfdc5ffc06d22b27d1f3f5158b42c92c21fa8a19b (diff)
downloadFreeBSD-src-a75d175b4f1d7335efc89a91eac2db17f903ec5e.zip
FreeBSD-src-a75d175b4f1d7335efc89a91eac2db17f903ec5e.tar.gz
Add privileges for Capi4BSD to control:
- controller reset/firmware loading. - controller level tracing and tracing of capi messages of applications running with different user credentials. Reviewed by: rwatson MFC after: 2 weeks
-rw-r--r--sys/sys/priv.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/sys/priv.h b/sys/sys/priv.h
index 4335406..ac6075b 100644
--- a/sys/sys/priv.h
+++ b/sys/sys/priv.h
@@ -458,9 +458,15 @@
#define PRIV_CPUCTL_UPDATE 641 /* Update cpu microcode. */
/*
+ * Capi4BSD privileges.
+ */
+#define PRIV_C4B_RESET_CTLR 650 /* Load firmware, reset controller. */
+#define PRIV_C4B_TRACE 651 /* Unrestricted CAPI message tracing. */
+
+/*
* Track end of privilege list.
*/
-#define _PRIV_HIGHEST 642
+#define _PRIV_HIGHEST 652
/*
* Validate that a named privilege is known by the privilege system. Invalid
OpenPOWER on IntegriCloud