projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bpf: Implement CAP_BPF
[linux-block.git]
/
kernel
/
bpf
/
lpm_trie.c
diff --git
a/kernel/bpf/lpm_trie.c
b/kernel/bpf/lpm_trie.c
index 65c236cf341e04514b785d1ca0790cc5207ad04d..c8cc4e4cf98de5f9d7e0395064601449738b926c 100644
(file)
--- a/
kernel/bpf/lpm_trie.c
+++ b/
kernel/bpf/lpm_trie.c
@@
-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 */