Skip to content
Commit 1c73213b authored by Paul Moore's avatar Paul Moore
Browse files

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: 1d1e1ded

 ("selinux: make better use of the nf_hook_state passed to the NF hooks")
Reported-by: default avatarLinux Kernel Functional Testing <lkft@linaro.org>
Suggested-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 4d5b5539
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment