Files
linux/drivers/net
Eugene Teo f2455eb176 wan: Missing capability checks in sbni_ioctl()
There are missing capability checks in the following code:

1300 static int
1301 sbni_ioctl( struct net_device  *dev,  struct ifreq  *ifr,  int  cmd)
1302 {
[...]
1319     case  SIOCDEVRESINSTATS :
1320         if( current->euid != 0 )    /* root only */
1321             return  -EPERM;
[...]
1336     case  SIOCDEVSHWSTATE :
1337         if( current->euid != 0 )    /* root only */
1338             return  -EPERM;
[...]
1357     case  SIOCDEVENSLAVE :
1358         if( current->euid != 0 )    /* root only */
1359             return  -EPERM;
[...]
1372     case  SIOCDEVEMANSIPATE :
1373         if( current->euid != 0 )    /* root only */
1374             return  -EPERM;

Here's my proposed fix:

Missing capability checks.

Signed-off-by: Eugene Teo <eugeneteo@kernel.sg>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-08-27 04:50:30 -07:00
..
2008-08-27 05:36:27 -04:00
2008-07-29 17:48:42 -04:00
2008-07-22 19:39:14 -04:00
2008-08-27 05:36:12 -04:00
2008-08-27 05:14:32 -04:00
2008-08-14 04:43:32 -04:00
2008-08-27 05:54:57 -04:00
2008-08-26 20:06:31 -04:00
2008-08-07 02:22:15 -04:00
2008-03-17 08:11:03 -04:00
2008-01-28 15:04:05 -08:00
2008-06-10 18:20:17 -04:00
2008-08-14 04:26:38 -04:00
2008-07-29 18:24:14 -04:00
2008-04-29 01:56:14 -04:00
2008-07-18 17:54:17 -07:00
2008-05-16 22:20:27 -07:00
2008-07-18 17:55:11 -07:00
2008-08-13 16:05:38 -07:00
2008-08-13 16:05:37 -07:00
2008-08-13 16:05:38 -07:00
2008-08-13 16:05:37 -07:00
2008-08-25 15:30:39 -07:00
2008-08-13 16:05:37 -07:00
2008-08-25 15:19:17 -07:00
2008-07-26 12:00:06 -07:00
2008-01-04 00:47:04 -08:00
2008-08-14 04:26:38 -04:00
2008-03-26 00:18:43 -04:00
2008-02-01 20:54:03 +11:00
2008-08-27 05:55:35 -04:00
2008-01-28 15:07:59 -08:00
2008-08-27 05:55:04 -04:00
2008-05-22 14:12:40 -04:00
2008-01-28 15:07:12 -08:00
2008-07-22 17:50:44 -04:00
2008-07-22 17:50:44 -04:00
2008-02-03 04:26:12 -08:00
2008-08-27 05:36:57 -04:00
2008-07-25 15:44:44 +10:00
2008-03-17 08:11:41 -04:00
2008-08-14 04:26:38 -04:00
2008-04-25 02:08:51 -04:00
2008-06-11 22:06:31 -04:00
2008-01-28 15:07:12 -08:00
2008-08-07 02:11:19 -04:00
2007-10-19 11:53:42 -07:00
2008-02-03 04:28:10 -08:00
2008-08-24 07:36:39 +02:00
2008-07-22 17:50:44 -04:00
2008-03-17 07:56:33 -04:00
2008-08-14 04:44:11 -04:00
2008-03-26 00:18:00 -04:00
2008-05-30 22:19:22 -04:00
2008-03-05 16:34:41 -06:00
2008-07-20 17:12:34 -07:00
2008-01-28 15:11:27 -08:00
2008-07-26 20:53:40 -04:00
2008-07-20 17:12:34 -07:00
2008-06-20 21:58:02 -07:00
2008-08-07 02:11:15 -04:00
2008-08-14 04:26:38 -04:00
2008-01-28 15:03:59 -08:00
2008-07-11 01:11:40 -04:00
2008-04-16 20:41:44 -04:00
2008-05-30 22:07:17 -04:00
2008-08-14 04:26:38 -04:00
2008-08-07 02:20:57 -04:00
2007-10-16 21:10:29 -04:00
2008-08-07 01:55:50 -04:00
2008-01-28 15:11:27 -08:00
2008-07-20 17:12:34 -07:00
2008-01-28 15:03:59 -08:00
2008-04-16 20:06:50 -04:00
2008-02-03 04:26:15 -08:00
2008-01-28 15:03:46 -08:00
2008-03-23 03:35:12 -07:00
2008-01-28 15:07:10 -08:00
2008-01-28 15:07:09 -08:00
2008-02-03 04:26:14 -08:00
2008-08-14 04:26:38 -04:00
2008-08-15 14:11:19 -07:00
2008-08-15 14:10:04 -07:00
2008-05-30 22:18:02 -04:00