Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109288
b: refs/heads/master
c: f2455eb
h: refs/heads/master
v: v3
  • Loading branch information
Eugene Teo authored and David S. Miller committed Aug 27, 2008
1 parent 0495e10 commit afadffc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6c36810a731a422535d838cdb440f332c1d91017
refs/heads/master: f2455eb176ac87081bbfc9a44b21c7cd2bc1967e
8 changes: 4 additions & 4 deletions trunk/drivers/net/wan/sbni.c
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ sbni_ioctl( struct net_device *dev, struct ifreq *ifr, int cmd )
break;

case SIOCDEVRESINSTATS :
if( current->euid != 0 ) /* root only */
if (!capable(CAP_NET_ADMIN))
return -EPERM;
memset( &nl->in_stats, 0, sizeof(struct sbni_in_stats) );
break;
Expand All @@ -1334,7 +1334,7 @@ sbni_ioctl( struct net_device *dev, struct ifreq *ifr, int cmd )
break;

case SIOCDEVSHWSTATE :
if( current->euid != 0 ) /* root only */
if (!capable(CAP_NET_ADMIN))
return -EPERM;

spin_lock( &nl->lock );
Expand All @@ -1355,7 +1355,7 @@ sbni_ioctl( struct net_device *dev, struct ifreq *ifr, int cmd )
#ifdef CONFIG_SBNI_MULTILINE

case SIOCDEVENSLAVE :
if( current->euid != 0 ) /* root only */
if (!capable(CAP_NET_ADMIN))
return -EPERM;

if (copy_from_user( slave_name, ifr->ifr_data, sizeof slave_name ))
Expand All @@ -1370,7 +1370,7 @@ sbni_ioctl( struct net_device *dev, struct ifreq *ifr, int cmd )
return enslave( dev, slave_dev );

case SIOCDEVEMANSIPATE :
if( current->euid != 0 ) /* root only */
if (!capable(CAP_NET_ADMIN))
return -EPERM;

return emancipate( dev );
Expand Down

0 comments on commit afadffc

Please sign in to comment.