Also allow IPPROTO_TCP:TCP_NODELAY
It is very small kernel code, and will allow some software to drop "inet"
requested by djm
-/* $OpenBSD: kern_pledge.c,v 1.297 2022/11/08 19:17:58 robert Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.298 2022/11/09 22:25:08 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
return (0);
}
break;
+ case IPPROTO_TCP:
+ switch (optname) {
+ case TCP_NODELAY:
+ return (0);
+ break;
}
if ((pledge & PLEDGE_WROUTE)) {
switch (level) {
case IPPROTO_TCP:
switch (optname) {
- case TCP_NODELAY:
case TCP_MD5SIG:
case TCP_SACK_ENABLE:
case TCP_MAXSEG: