This is required by, for example, slaacd(8) (which has been pledged) to
set MTU on an interface.
OK florian@, deraadt@
-/* $OpenBSD: kern_pledge.c,v 1.237 2018/07/15 12:44:09 beck Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.238 2018/07/27 06:15:10 bket Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
if (fp->f_type == DTYPE_SOCKET)
return (0);
break;
+ case SIOCSIFMTU:
+ if (fp->f_type == DTYPE_SOCKET)
+ return (0);
+ break;
}
}