bpf: Add bpf_get_sockops_uid_gid helper function
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I7LTRR CVE: NA Reference: https://gitee.com/openeuler/kernel/commit/9d4b4a05ae00d7e5b2f8a33fdbdf974df182ccb7 -------------------------------- Add the function for bpf sock_ops hook to get sock's uid and gid. Signed-off-by: NLiu Jian <liujian56@huawei.com> Conflicts: include/uapi/linux/bpf.h net/core/filter.c tools/include/uapi/linux/bpf.h Signed-off-by: NJofDiamonds <kwb0523@163.com> Reviewed-by: Nwuchangye <wuchangye@huawei.com>
Showing
想要评论请 注册 或 登录