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-23 23:05:56 +02:00
2008-07-04 08:47:41 -04:00
2008-08-07 04:05:46 -04:00
2008-02-03 15:42:53 +02:00
2007-07-19 10:04:50 -07:00
2007-12-22 22:53:06 -05:00
2008-03-26 04:39:53 +09:00
2008-07-23 23:00:37 +02:00
2008-07-23 23:00:38 +02:00
2008-07-23 23:00:38 +02:00
2008-07-04 08:47:41 -04:00
2008-07-23 23:00:25 +02:00
2008-07-23 23:00:25 +02:00
2008-07-23 23:00:25 +02:00
2008-07-23 23:00:25 +02:00
2008-07-23 23:00:25 +02:00
2008-07-23 23:00:25 +02:00
2008-07-23 23:00:25 +02:00
2008-07-23 23:05:55 +02:00
2008-08-07 04:05:46 -04:00
2008-05-03 21:10:58 -07:00
2008-07-23 23:05:56 +02:00
2007-10-10 16:51:13 -07:00
2008-07-23 23:00:38 +02:00
2008-07-20 17:43:29 -07:00
2008-07-23 23:00:38 +02:00
2007-10-10 16:51:13 -07:00
2007-10-10 16:51:13 -07:00
2008-08-27 04:50:30 -07:00
2008-01-18 14:44:33 -05:00
2008-01-28 15:03:40 -08:00
2008-07-23 23:05:55 +02:00
2008-07-23 23:00:31 +02:00
2008-07-04 08:47:41 -04:00
2008-07-20 17:12:34 -07:00
2008-07-23 23:05:55 +02:00
2008-07-23 23:05:55 +02:00