summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/in6.c
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2009-06-10 10:31:11 +0000
committercperciva <cperciva@FreeBSD.org>2009-06-10 10:31:11 +0000
commit632fa4557466f1f20190899b29b3863089eb768f (patch)
tree5b29aae21aa521fce02ec60561dcdae1bcd23364 /sys/netinet6/in6.c
parent4cc0c5560a490046b2793a2d965825fe6446d508 (diff)
downloadFreeBSD-src-632fa4557466f1f20190899b29b3863089eb768f.zip
FreeBSD-src-632fa4557466f1f20190899b29b3863089eb768f.tar.gz
Prevent integer overflow in direct pipe write code from circumventing
virtual-to-physical page lookups. [09:09] Add missing permissions check for SIOCSIFINFO_IN6 ioctl. [09:10] Fix buffer overflow in "autokey" negotiation in ntpd(8). [09:11] Approved by: so (cperciva) Approved by: re (not really, but SVN wants this...) Security: FreeBSD-SA-09:09.pipe Security: FreeBSD-SA-09:10.ipv6 Security: FreeBSD-SA-09:11.ntpd
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r--sys/netinet6/in6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index 9bb3d93..74d5498b 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -214,6 +214,7 @@ in6_control(struct socket *so, u_long cmd, caddr_t data,
case SIOCSRTRFLUSH_IN6:
case SIOCSDEFIFACE_IN6:
case SIOCSIFINFO_FLAGS:
+ case SIOCSIFINFO_IN6:
if (td != NULL) {
error = priv_check(td, PRIV_NETINET_ND6);
if (error)
@@ -222,7 +223,6 @@ in6_control(struct socket *so, u_long cmd, caddr_t data,
/* FALLTHROUGH */
case OSIOCGIFINFO_IN6:
case SIOCGIFINFO_IN6:
- case SIOCSIFINFO_IN6:
case SIOCGDRLST_IN6:
case SIOCGPRLST_IN6:
case SIOCGNBRINFO_IN6:
OpenPOWER on IntegriCloud