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-15 03:30:00 +02:00
2008-08-20 15:40:30 -07:00
2008-08-18 13:23:53 +02:00
2008-08-18 21:40:04 +02:00
2008-08-20 15:40:31 -07:00
2008-08-15 21:25:35 +02:00
2008-08-19 18:47:56 +02:00
2008-08-15 11:50:15 -07:00
2008-08-13 17:32:56 -07:00
2008-08-18 21:40:04 +02:00
2008-08-19 18:47:56 +02:00
2008-08-20 08:46:11 -07:00
2008-08-20 15:40:30 -07:00
2008-08-17 20:01:35 +02:00
2008-08-16 16:48:45 -07:00
2008-08-27 04:50:30 -07:00
2008-08-20 09:50:21 +10:00
2008-08-18 17:23:24 -07:00
2008-08-16 16:35:33 +01:00
2008-08-20 15:40:32 -07:00
2008-08-27 05:55:28 -04:00
2008-08-20 08:42:53 -07:00
2008-08-16 16:48:45 -07:00
2008-08-15 08:35:44 -07:00
2008-08-18 11:05:13 -04:00
2008-08-16 16:48:45 -07:00
2008-08-20 15:40:32 -07:00
2008-08-16 16:48:45 -07:00
2008-08-13 17:33:00 -07:00