From: deraadt Date: Sat, 10 Oct 2015 14:48:03 +0000 (+0000) Subject: allow sysctl of kern.clockrate X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4de5c569d73c26510111156757c3fb7a6038a065;p=openbsd allow sysctl of kern.clockrate --- 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 @@ -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);