diff options
author | Mathieu Xhonneux <m.xhonneux@gmail.com> | 2018-07-10 16:54:02 +0000 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-07-11 22:29:18 +0200 |
commit | 61d769807f273fda962866f3d4c677cda9974d3c (patch) | |
tree | 71f5166effba9c75f9adb54939cf48d4633fbdff /kernel | |
parent | 59ee4129a279070d8e2f9dc1660330f6593c7808 (diff) |
bpf: fix availability probing for seg6 helpers
bpf_lwt_seg6_* helpers require CONFIG_IPV6_SEG6_BPF, and currently
return -EOPNOTSUPP to indicate unavailability. This patch forces the
BPF verifier to reject programs using these helpers when
!CONFIG_IPV6_SEG6_BPF, allowing users to more easily probe if they are
available or not.
Signed-off-by: Mathieu Xhonneux <m.xhonneux@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions