Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224475
b: refs/heads/master
c: 2fe66ec
h: refs/heads/master
i:
  224473: 7284fb6
  224471: dfeb548
v: v3
  • Loading branch information
Eric Paris authored and David S. Miller committed Nov 23, 2010
1 parent 952db84 commit 38d90ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 04f6d70f6e64900a5d70a5fc199dd9d5fa787738
refs/heads/master: 2fe66ec242d3f76e3b0101f36419e7e5405bcff3
4 changes: 2 additions & 2 deletions trunk/security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -4524,11 +4524,11 @@ static unsigned int selinux_ip_postroute_compat(struct sk_buff *skb,
if (selinux_secmark_enabled())
if (avc_has_perm(sksec->sid, skb->secmark,
SECCLASS_PACKET, PACKET__SEND, &ad))
return NF_DROP;
return NF_DROP_ERR(-ECONNREFUSED);

if (selinux_policycap_netpeer)
if (selinux_xfrm_postroute_last(sksec->sid, skb, &ad, proto))
return NF_DROP;
return NF_DROP_ERR(-ECONNREFUSED);

return NF_ACCEPT;
}
Expand Down

0 comments on commit 38d90ac

Please sign in to comment.