aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorStephen J. Kiernan <stevek@FreeBSD.org>2023-04-16 03:59:52 +0000
committerStephen J. Kiernan <stevek@FreeBSD.org>2023-04-16 18:37:58 +0000
commit4819e5aeda4ef1a193a08e29b4099c3c30369a81 (patch)
treec71af1154710616e30148d09c5be3ec960ebaf3c /sys/sys
parentc753f49f7006d28786c29dfbb5f838b494e2146f (diff)
downloadsrc-4819e5aeda4ef1a193a08e29b4099c3c30369a81.tar.gz
src-4819e5aeda4ef1a193a08e29b4099c3c30369a81.zip
Add new privilege PRIV_KDB_SET_BACKEND
Summary: Check for PRIV_KDB_SET_BACKEND before allowing a thread to change the KDB backend. Obtained from: Juniper Networks, Inc. Reviewers: sjg, emaste Subscribers: imp Differential Revision: https://reviews.freebsd.org/D39538
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/priv.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/sys/priv.h b/sys/sys/priv.h
index 20bfc7312ce3..cb4dcecea4aa 100644
--- a/sys/sys/priv.h
+++ b/sys/sys/priv.h
@@ -516,9 +516,14 @@
#define PRIV_KMEM_WRITE 681 /* Open mem/kmem for writing. */
/*
+ * Kernel debugger privileges.
+ */
+#define PRIV_KDB_SET_BACKEND 690 /* Allow setting KDB backend. */
+
+/*
* Track end of privilege list.
*/
-#define _PRIV_HIGHEST 682
+#define _PRIV_HIGHEST 691
/*
* Validate that a named privilege is known by the privilege system. Invalid