From 3950137eea19f846b1370d72b6450d99a644ac8f Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 28 Oct 2015 09:35:03 +0000 Subject: [PATCH] kern.cptime is length 2 --- sys/kern/kern_pledge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index 1222353a6be..b21300158c4 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.81 2015/10/28 02:12:54 deraadt Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.82 2015/10/28 09:35:03 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -908,7 +908,7 @@ pledge_sysctl_check(struct proc *p, int miblen, int *mib, void *new) if (miblen == 2 && /* kern.loadavg */ mib[0] == CTL_VM && mib[1] == VM_LOADAVG) return (0); - if (miblen == 3 && /* kern.cptime */ + if (miblen == 2 && /* kern.cptime */ mib[0] == CTL_KERN && mib[1] == KERN_CPTIME) return (0); if (miblen == 3 && /* kern.cptime2 */ -- 2.20.1