Re: [PATCH bpf-next] bpf: guard bpf_get_current_cgroup_id() with CONFIG_CGROUPS

2018-06-04 Thread Daniel Borkmann
On 06/04/2018 05:53 PM, Yonghong Song wrote: > Commit bf6fa2c893c5 ("bpf: implement bpf_get_current_cgroup_id() > helper") introduced a new helper bpf_get_current_cgroup_id(). > The helper has a dependency on CONFIG_CGROUPS. > > When CONFIG_CGROUPS is not defined, using the helper will result > th

[PATCH bpf-next] bpf: guard bpf_get_current_cgroup_id() with CONFIG_CGROUPS

2018-06-04 Thread Yonghong Song
Commit bf6fa2c893c5 ("bpf: implement bpf_get_current_cgroup_id() helper") introduced a new helper bpf_get_current_cgroup_id(). The helper has a dependency on CONFIG_CGROUPS. When CONFIG_CGROUPS is not defined, using the helper will result the following verifier error: kernel subsystem misconfigu