1. 08 9月, 2008 2 次提交
  2. 04 9月, 2008 13 次提交
  3. 03 9月, 2008 19 次提交
  4. 30 8月, 2008 3 次提交
  5. 28 8月, 2008 2 次提交
  6. 27 8月, 2008 1 次提交
    • E
      wan: Missing capability checks in sbni_ioctl() · f2455eb1
      Eugene Teo 提交于
      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: NEugene Teo <eugeneteo@kernel.sg>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f2455eb1