summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_pledge.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index 9402d1e98eb..990f8f4a338 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.7 2015/10/10 14:46:15 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.8 2015/10/10 14:48:03 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -881,6 +881,9 @@ pledge_sysctl_check(struct proc *p, int miblen, int *mib, void *new)
if (miblen == 2 && /* uname() */
mib[0] == CTL_KERN && mib[1] == KERN_VERSION)
return (0);
+ if (miblen == 2 && /* kern.clockrate */
+ mib[0] == CTL_KERN && mib[1] == KERN_CLOCKRATE)
+ return (0);
if (miblen == 2 && /* uname() */
mib[0] == CTL_HW && mib[1] == HW_MACHINE)
return (0);