diff options
author | 2021-07-04 12:02:48 -0700 | |
---|---|---|
committer | 2021-07-15 18:17:50 -0700 | |
commit | 9825d866ce0d11009513e06824885340062c166b (patch) | |
tree | b292e6c74103ad9864d772d76d7f74ddcb06ef81 /kernel/bpf/devmap.c | |
parent | af_unix: Implement ->psock_update_sk_prot() (diff) | |
download | linux-dev-9825d866ce0d11009513e06824885340062c166b.tar.xz linux-dev-9825d866ce0d11009513e06824885340062c166b.zip |
af_unix: Implement unix_dgram_bpf_recvmsg()
We have to implement unix_dgram_bpf_recvmsg() to replace the
original ->recvmsg() to retrieve skmsg from ingress_msg.
AF_UNIX is again special here because the lack of
sk_prot->recvmsg(). I simply add a special case inside
unix_dgram_recvmsg() to call sk->sk_prot->recvmsg() directly.
Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210704190252.11866-8-xiyou.wangcong@gmail.com
Diffstat (limited to 'kernel/bpf/devmap.c')
0 files changed, 0 insertions, 0 deletions