提交 e0c4c9af 编写于 作者: L Liu Jian

net: let sockops can use bpf_get_current_comm()

hulk inclusion
category: feature
bugzilla: NA
CVE: N/A

----------------------------------------------------

Let sockops can use bpf_get_current_comm().
Signed-off-by: NLiu Jian <liujian56@huawei.com>
上级 cee65b79
......@@ -7416,6 +7416,8 @@ sock_ops_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
#endif /* CONFIG_INET */
case BPF_FUNC_is_local_ipaddr:
return &bpf_is_local_ipaddr_proto;
case BPF_FUNC_get_current_comm:
return &bpf_get_current_comm_proto;
default:
return bpf_sk_base_func_proto(func_id);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册