If pledge "wroute" is missing for setsockopt SO_RTABLE, print failure
authorbluhm <bluhm@openbsd.org>
Wed, 20 Jan 2021 16:36:09 +0000 (16:36 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 20 Jan 2021 16:36:09 +0000 (16:36 +0000)
commitf0bd57ec98731988301fd829f836873cc62f369b
treea53359e7a0b09d80d17b30f568cecfd86ff41b8b
parent1ee80485e6c186d79eabefb48a14ca1d4ce54a6b
If pledge "wroute" is missing for setsockopt SO_RTABLE, print failure
message "wroute" into dmesg.  Since revision 1.263 pledge "wroute"
allows to change the routing table of a socket.
OK florian@ semarie@
sys/kern/kern_pledge.c