Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166733
b: refs/heads/master
c: 5788c56
h: refs/heads/master
i:
  166731: 350a6c7
v: v3
  • Loading branch information
Philipp Reisner authored and David S. Miller committed Oct 2, 2009
1 parent 4d8517e commit 91c03a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24836479a126e02be691e073c2b6cad7e7ab836a
refs/heads/master: 5788c56891cfb310e419c4f9ae20427851797431
5 changes: 5 additions & 0 deletions trunk/drivers/staging/dst/dcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,11 @@ static void cn_dst_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp)
struct dst_node *n = NULL, *tmp;
unsigned int hash;

if (!cap_raised(nsp->eff_cap, CAP_SYS_ADMIN)) {
err = -EPERM;
goto out;
}

if (msg->len < sizeof(struct dst_ctl)) {
err = -EBADMSG;
goto out;
Expand Down

0 comments on commit 91c03a6

Please sign in to comment.