summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 39214de..d407b24 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1196,7 +1196,7 @@ sysctl_root(SYSCTL_HANDLER_ARGS)
int flags;
if (oid->oid_kind & CTLFLAG_PRISON)
- flags = PRISON_ROOT;
+ flags = SUSER_ALLOWJAIL;
else
flags = 0;
error = suser_cred(req->td->td_ucred, flags);
OpenPOWER on IntegriCloud