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-05 14:36:57 +02:00
2008-07-30 16:33:05 -07:00
2008-07-24 10:47:41 -07:00
2008-08-01 11:52:39 -07: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-08 16:00:48 -04:00
2008-08-15 21:25:35 +02:00
2008-08-13 22:02:26 +10:00
2008-07-23 12:03:18 -07:00
2008-07-20 17:24:40 -07:00
2008-08-09 18:03:13 +01:00
2008-07-25 10:53:49 -07:00
2008-07-21 21:54:53 -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-01 12:46:41 -07:00
2008-08-08 16:23:01 -04: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-12 13:52:54 -07:00
2008-08-20 08:46:11 -07:00
2008-08-02 16:40:37 +02:00
2008-08-07 09:55:48 +01:00
2008-08-12 17:52:53 +10:00
2008-08-05 18:16:58 +02:00
2008-07-21 21:54:53 -07:00
2008-08-07 10:02:47 -07:00
2008-08-08 19:18:18 +01:00
2008-07-26 12:00:04 -07:00
2008-07-27 10:04:52 -07:00
2008-08-10 23:32:07 +02: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-07-26 12:00:11 -07:00
2008-08-18 17:23:24 -07:00
2008-08-16 16:35:33 +01:00
2008-08-01 12:46:41 -07:00
2008-08-07 09:55:48 +01:00
2008-07-30 10:10:23 +01:00
2008-08-20 15:40:32 -07:00
2008-08-27 05:55:28 -04:00
2008-08-11 14:30:53 -07:00
2008-08-20 08:42:53 -07:00
2008-08-16 16:48:45 -07:00
2008-08-04 12:51:06 +09:00
2008-08-15 08:35:44 -07:00
2008-08-18 11:05:13 -04:00
2008-07-25 10:53:43 -07:00
2008-07-21 21:54:55 -07:00
2008-08-16 16:48:45 -07:00
2008-08-20 15:40:32 -07:00
2008-07-25 12:06:14 +10:00
2008-08-16 16:48:45 -07:00
2008-07-21 21:55:02 -07:00
2008-07-24 10:47:13 -07:00
2008-08-13 17:33:00 -07:00