From: Jouni Malinen (jkmaline_at_cc.hut.fi)
Date: 2002-06-15 15:00:42 UTC
On Fri, Jun 14, 2002 at 09:50:49AM -0700, Jean Tourrilhes wrote:
> Please find me a kernel that doesn't do permission
> checking. Those have been around since a very long time in the
> Wireless Extensions (at least as far as v6, which mean 2.0.X
> kernel). The only one to be careful about is GETENCODE (and all the
> private ioctls in the old range).
Aaah.. Yes, that's true. I just quickly looked at 2.2.18 net/core/dev.c and first reference to SIOCIWFIRST did not have such verification whereas in 2.4 kernels it did. However, there is indeed another place in 2.2.18 dev.c that includes this verification. SIOCGIWENCODE seems to get through in 2.2 (but not in latest 2.4), so that verification will need to remain in the driver code.
-- Jouni Malinen PGP id EFC895FA