diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-22 11:01:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-22 11:01:44 +0000 |
commit | fd508d5ce755847383b28f970b290b35835ad29c (patch) | |
tree | a17088e3123cfa57741bb16bd4c6c7da28505e17 /sys/kern | |
parent | fc2236a97fff314377a7b185545d88ddb87fa59f (diff) |
Further study shows "route" should allow all address families in NET_RT_DUMP
With benno
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_pledge.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index ea9af2323da..05ec65552f1 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.63 2015/10/22 10:35:23 deraadt Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.64 2015/10/22 11:01:43 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -839,7 +839,6 @@ pledge_sysctl_check(struct proc *p, int miblen, int *mib, void *new) if ((miblen == 6 || miblen == 7) && mib[0] == CTL_NET && mib[1] == PF_ROUTE && mib[2] == 0 && - (mib[3] == 0 || mib[3] == AF_INET6 || mib[3] == AF_INET) && mib[4] == NET_RT_DUMP) return (0); |