message "wroute" into dmesg. Since revision 1.263 pledge "wroute"
allows to change the routing table of a socket.
OK florian@ semarie@
-/* $OpenBSD: kern_pledge.c,v 1.268 2021/01/19 17:41:51 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.269 2021/01/20 16:36:09 bluhm Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
case SOL_SOCKET:
switch (optname) {
case SO_RTABLE:
- return pledge_fail(p, EINVAL, PLEDGE_INET);
+ return pledge_fail(p, EINVAL, PLEDGE_WROUTE);
}
return (0);
}