Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133961
b: refs/heads/master
c: 1bded71
h: refs/heads/master
i:
  133959: 9ff5096
v: v3
  • Loading branch information
Michael Tokarev authored and David S. Miller committed Feb 3, 2009
1 parent 7aa5674 commit d0be329
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 1a5645bc901aea6f3f446888061b2b084bbf1ba6
refs/heads/master: 1bded710a574f20d41bc9e7fb531301db282d623
2 changes: 1 addition & 1 deletion trunk/drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static int tun_attach(struct tun_struct *tun, struct file *file)

/* Check permissions */
if (((tun->owner != -1 && cred->euid != tun->owner) ||
(tun->group != -1 && cred->egid != tun->group)) &&
(tun->group != -1 && !in_egroup_p(tun->group))) &&
!capable(CAP_NET_ADMIN))
return -EPERM;

Expand Down

0 comments on commit d0be329

Please sign in to comment.