bpf-devices: fix cgroup v2 devices detection
authorPavel Hrdina <phrdina@redhat.com>
Mon, 12 Nov 2018 09:52:05 +0000 (10:52 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 13 Nov 2018 11:58:05 +0000 (12:58 +0100)
commit0b82cd2502bd9df61cc7cd283409226035e3b77c
tree094681854611d01ab4686f98e7807647c042c563
parent8724defeae4c6da9e5816e88dec4138c5f909932
bpf-devices: fix cgroup v2 devices detection

If cgroup v2 bpf devices is supported we need to return 1, not -1.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/core/bpf-devices.c