Skip to content

net: add skb_to_full_sk() helper

Eric Dumazet netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6net: add skb_to_full_sk() helper and use it in selinux_netlbl_skbuff_setsid()include/net/inet_sock.h security/selinux/hooks.c security/selinux/netlabel.c+15 -150 replies
2/6smack: use skb_to_full_sk() helpersecurity/smack/smack_netfilter.c+7 -40 replies
3/6netfilter: xt_owner: use skb_to_full_sk() helpernet/netfilter/xt_owner.c+4 -20 replies
4/6sched: cls_flow: use skb_to_full_sk() helpernet/sched/cls_flow.c+11 -40 replies
5/6net_sched: em_meta: use skb_to_full_sk() helpernet/sched/em_meta.c+92 -460 replies
6/6netfilter: nft_meta: use skb_to_full_sk() helpernet/netfilter/nft_meta.c+20 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/6] net: add skb_to_full_sk() helper

Many contexts need to reach listener socket from skb attached to a request socket. This patch series add skb_to_full_sk() to clearly express this need and use it where appropriate.

Eric Dumazet (6):
net: add skb_to_full_sk() helper and use it in
selinux_netlbl_skbuff_setsid()
smack: use skb_to_full_sk() helper
netfilter: xt_owner: use skb_to_full_sk() helper
sched: cls_flow: use skb_to_full_sk() helper
net_sched: em_meta: use skb_to_full_sk() helper
netfilter: nft_meta: use skb_to_full_sk() helper

 include/net/inet_sock.h          |  12 ++++
 net/netfilter/nft_meta.c         |  36 +++++-----
 net/netfilter/xt_owner.c         |   6 +-
 net/sched/cls_flow.c             |  15 +++--
 net/sched/em_meta.c              | 138 ++++++++++++++++++++++++++-------------
 security/selinux/hooks.c         |  16 +----
 security/selinux/netlabel.c      |   2 +-
 security/smack/smack_netfilter.c |  11 ++--
 8 files changed, 149 insertions(+), 87 deletions(-)
Signature · 1 line
2.6.0.rc2.230.g3dd15c0