bpf: Implement CAP_BPF
[linux-2.6-microblaze.git] / kernel / bpf / lpm_trie.c
index 65c236c..c8cc4e4 100644 (file)
@@ -543,7 +543,7 @@ static struct bpf_map *trie_alloc(union bpf_attr *attr)
        u64 cost = sizeof(*trie), cost_per_node;
        int ret;
 
-       if (!capable(CAP_SYS_ADMIN))
+       if (!bpf_capable())
                return ERR_PTR(-EPERM);
 
        /* check sanity of attributes */