diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-10-01 08:25:36 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-10-01 08:25:36 +0000 |
commit | e51608a321579236b11d907657cbafca9473308d (patch) | |
tree | 715b4043eeee2ffa2f43ca8167425d48bb68a6ec /sys | |
parent | eedff1a9eee26f62a849e6291e064d244d282f2b (diff) |
Do not pass the SIOCSIF{DSTADDR,BRDADDR,NETMASK} ioctls down to the
driver when using an AF_INET6 socket without checking for permission.
From Loganaden Velvindron, ok bluhm@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet6/in6.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index a2ed35801ca..0ec503635e1 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6.c,v 1.118 2013/08/26 07:15:58 bluhm Exp $ */ +/* $OpenBSD: in6.c,v 1.119 2013/10/01 08:25:35 mpi Exp $ */ /* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */ /* @@ -426,8 +426,11 @@ in6_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp, sa6 = &ifr->ifr_addr; break; case SIOCSIFADDR: + case SIOCSIFDSTADDR: + case SIOCSIFBRDADDR: + case SIOCSIFNETMASK: /* - * Do not pass this ioctl to driver handler since it is not + * Do not pass those ioctl to driver handler since they are not * properly setup. Instead just error out. */ return (EOPNOTSUPP); |