projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bpf: Centralize permissions checks for all BPF map types
[linux-2.6-microblaze.git]
/
kernel
/
bpf
/
lpm_trie.c
diff --git
a/kernel/bpf/lpm_trie.c
b/kernel/bpf/lpm_trie.c
index
e0d3ddf
..
17c7e77
100644
(file)
--- a/
kernel/bpf/lpm_trie.c
+++ b/
kernel/bpf/lpm_trie.c
@@
-544,9
+544,6
@@
static struct bpf_map *trie_alloc(union bpf_attr *attr)
{
struct lpm_trie *trie;
- if (!bpf_capable())
- return ERR_PTR(-EPERM);
-
/* check sanity of attributes */
if (attr->max_entries == 0 ||
!(attr->map_flags & BPF_F_NO_PREALLOC) ||