Author: dchagin
Date: Sat Mar 25 14:26:45 2017
New Revision: 315954
URL: https://svnweb.freebsd.org/changeset/base/315954
Log:
MFC r315503:
As noted by Roel Bouwman Linux allows a large buffer size than the
struct ucred size. Fix this.
PR: 102956
Modified:
stable/11/sys/compat/linux/linux_socket.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/compat/linux/linux_socket.c
==============================================================================
--- stable/11/sys/compat/linux/linux_socket.c Sat Mar 25 14:25:20 2017
(r315953)
+++ stable/11/sys/compat/linux/linux_socket.c Sat Mar 25 14:26:45 2017
(r315954)
@@ -1621,7 +1621,7 @@ linux_getsockopt(struct thread *td, stru
/* NOTREACHED */
break;
case LOCAL_PEERCRED:
- if (args->optlen != sizeof(lxu))
+ if (args->optlen < sizeof(lxu))
return (EINVAL);
xulen = sizeof(xu);
error = kern_getsockopt(td, args->s, bsd_args.level,
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"