diff options
author | Paul Moore <paul@paul-moore.com> | 2021-10-19 18:19:44 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-10-19 18:35:18 +0200 |
commit | 1c73213ba991d26a91282e775d1f5a60e41e5184 (patch) | |
tree | e555b8e1ba2231f6419aca576fc46d6af3ea25cd /fs/read_write.c | |
parent | binder: use cred instead of task for getsecid (diff) | |
download | linux-1c73213ba991d26a91282e775d1f5a60e41e5184.tar.xz linux-1c73213ba991d26a91282e775d1f5a60e41e5184.zip |
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: 1d1e1ded1356 ("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>
Diffstat (limited to 'fs/read_write.c')
0 files changed, 0 insertions, 0 deletions