diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-28 09:35:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-28 09:35:04 +0000 |
commit | 56b0f7fb77db41cfb361986b6cb66954d779c413 (patch) | |
tree | 9259340ba3b9c5ab6b8831218b060d846d7ccd6b /sys/kern/kern_pledge.c | |
parent | fff90f5e8534e29b04d026c7a177a747f29fc5f3 (diff) |
kern.cptime is length 2
Diffstat (limited to 'sys/kern/kern_pledge.c')
-rw-r--r-- | sys/kern/kern_pledge.c | 4 |
1 files 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 <nicm@openbsd.org> @@ -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 */ |