hulk inclusion category: feature bugzilla: NA CVE: N/A
----------------------------------------------------
Let sockops can use bpf_get_current_comm().
Signed-off-by: Liu Jian liujian56@huawei.com --- net/core/filter.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/net/core/filter.c b/net/core/filter.c index 527b66921dd6..bc81ce340a4d 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -7418,6 +7418,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); }