Commit 1c73213
committed
selinux: fix a sock regression in selinux_ip_postroute_compat()
Unfortunately we can't rely on nf_hook_state->sk being the proper
originating socket so revert to using skb_to_full_sk(skb).
Fixes: 1d1e1de ("selinux: make better use of the nf_hook_state passed to the NF hooks")
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Suggested-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Paul Moore <paul@paul-moore.com>1 parent 4d5b553 commit 1c73213
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5778 | 5778 | | |
5779 | 5779 | | |
5780 | 5780 | | |
5781 | | - | |
5782 | | - | |
5783 | 5781 | | |
| 5782 | + | |
| 5783 | + | |
5784 | 5784 | | |
5785 | 5785 | | |
5786 | 5786 | | |
| |||
0 commit comments