netdev
[Top] [All Lists]

[PATCH 2.6] compat_sys_[gs]etsockopt need to check for level

To: netdev@xxxxxxxxxxx
Subject: [PATCH 2.6] compat_sys_[gs]etsockopt need to check for level
From: Olaf Kirch <okir@xxxxxxx>
Date: Mon, 24 May 2004 13:33:31 +0200
Cc: meissner@xxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4i
The 32bit emulation functions for setsockopt/getsockopt try
to catch a few special cases by looking at the option name,
without checking for the option level. This breaks IPV6_V6ONLY
and probably a few others.

The bug was found by Marcus Meissner.

I hope I got the level for IPT_SO_SET_REPLACE right (I think it's SOL_IP).
I would appreciate if someone could double-check.

Cheers,
Olaf
-- 
Olaf Kirch     |  The Hardware Gods hate me.
okir@xxxxxxx   |
---------------+ 

Attachment: setsockopt-compat
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 2.6] compat_sys_[gs]etsockopt need to check for level, Olaf Kirch <=