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-07-24 10:47:41 -07:00
2008-08-18 21:40:04 +02:00
2008-07-25 10:53:49 -07:00
2008-08-19 18:47:56 +02:00
2008-08-12 16:07:31 -07:00
2008-07-25 10:53:30 -07:00
2008-08-15 11:50:15 -07:00
2008-08-13 17:32:56 -07:00
2008-08-08 19:18:18 +01:00
2008-08-10 23:32:07 +02:00
2008-08-20 15:40:30 -07:00
2008-07-26 12:00:11 -07:00
2008-08-16 16:35:33 +01:00
2008-08-04 12:51:06 +09:00
2008-07-21 21:54:55 -07:00
2008-08-13 17:33:00 -07:00