netdev
[Top] [All Lists]

[PATCH] Check for SOL_SOCKET in compat_sys_getsockopt

To: netdev@xxxxxxxxxxx
Subject: [PATCH] Check for SOL_SOCKET in compat_sys_getsockopt
From: Olaf Kirch <okir@xxxxxxx>
Date: Mon, 3 Jan 2005 15:33:06 +0100
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6i
compat_sys_getsockopt checks for SO_RCVTIMEO/SO_SNDTIMEO without
making sure that the level is actually SOL_SOCKET. This can break
getsockopt() requests for other protocols.

Cheers, and a happy new year to everyone!
Olaf
-- 
Olaf Kirch     | Things that make Monday morning interesting, #2:
okir@xxxxxxx   |        "We have 8,000 NFS mount points, why do we keep
---------------+         running out of privileged ports?"

Attachment: setsockopt-compat
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>