From 4728222fdbcc313a57deb2c90dfb9910c48addb7 Mon Sep 17 00:00:00 2001 From: bket Date: Fri, 27 Jul 2018 06:15:10 +0000 Subject: [PATCH] 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@ --- sys/kern/kern_pledge.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } } -- 2.20.1