Hi, Check the permissions when user-space try to read the encryption parameters via SIOCGIWENCODEEXT. This is trivial and probably should go in 2.6.17... Bug was found by Brian Eaton <[EMAIL PROTECTED]>, thanks !
Have fun... Jean Signed-off-by: Jean Tourrilhes <[EMAIL PROTECTED]> ----------------------------------------------------------- diff -u -p linux/net/core/dev.j1.c linux/net/core/dev.c --- linux/net/core/dev.j1.c 2006-04-04 15:42:53.000000000 -0700 +++ linux/net/core/dev.c 2006-04-04 15:44:14.000000000 -0700 @@ -2698,7 +2698,8 @@ int dev_ioctl(unsigned int cmd, void __u /* If command is `set a parameter', or * `get the encoding parameters', check if * the user has the right to do it */ - if (IW_IS_SET(cmd) || cmd == SIOCGIWENCODE) { + if (IW_IS_SET(cmd) || cmd == SIOCGIWENCODE + || cmd == SIOCGIWENCODEEXT) { if (!capable(CAP_NET_ADMIN)) return -EPERM; } - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html