From: bket Date: Fri, 27 Jul 2018 06:15:10 +0000 (+0000) Subject: Add SIOCSIFMTU to the wroute pledge. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4728222fdbcc313a57deb2c90dfb9910c48addb7;p=openbsd Add SIOCSIFMTU to the wroute pledge. This is required by, for example, slaacd(8) (which has been pledged) to set MTU on an interface. OK florian@, deraadt@ --- diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index d2d1b0a9cbb..57f45e3f737 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $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 @@ -1256,6 +1256,10 @@ pledge_ioctl(struct proc *p, long com, struct file *fp) if (fp->f_type == DTYPE_SOCKET) return (0); break; + case SIOCSIFMTU: + if (fp->f_type == DTYPE_SOCKET) + return (0); + break; } }