artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48af04c
)
Further study shows "route" should allow all address families in NET_RT_DUMP
author
deraadt
<deraadt@openbsd.org>
Thu, 22 Oct 2015 11:01:43 +0000
(11:01 +0000)
committer
deraadt
<deraadt@openbsd.org>
Thu, 22 Oct 2015 11:01:43 +0000
(11:01 +0000)
With benno
sys/kern/kern_pledge.c
patch
|
blob
|
history
diff --git
a/sys/kern/kern_pledge.c
b/sys/kern/kern_pledge.c
index
ea9af23
..
05ec655
100644
(file)
--- a/
sys/kern/kern_pledge.c
+++ b/
sys/kern/kern_pledge.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: kern_pledge.c,v 1.6
3 2015/10/22 10:35:2
3 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.6
4 2015/10/22 11:01:4
3 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);