]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip vrf: Improve bpf error messages
authorDavid Ahern <dsa@cumulusnetworks.com>
Fri, 6 Jan 2017 00:22:23 +0000 (16:22 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 9 Jan 2017 20:13:09 +0000 (12:13 -0800)
commit9b036afd3cb067d722817765a120a8221096b196
tree3f9510b654812f732f69d6706b450cc72c75853d
parent2bbc5b0726611d0faf7895ec01a42286e26c8ca4
ip vrf: Improve bpf error messages

Next up a non-root user gets various bpf related error messages:

$ ip vrf exec mgmt bash
Failed to load BPF prog: 'Operation not permitted'
Kernel compiled with CGROUP_BPF enabled?

Catch the EPERM error and do not show the kernel config option.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
ip/ipvrf.c