diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-11-01 11:48:00 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-02 16:50:28 +0900 |
commit | 1495dc9f0a711a54f8fec849ce7f3a8f585a11e5 (patch) | |
tree | cb640da25763f40ad150a622de12c1fb1326615c /include | |
parent | 3ded76a8ff53fd2a9b011e86c6f3588a984d432d (diff) | |
download | linux-1495dc9f0a711a54f8fec849ce7f3a8f585a11e5.tar.bz2 |
security: bpf: replace include of linux/bpf.h with forward declarations
Touching linux/bpf.h makes us rebuild a surprisingly large
portion of the kernel. Remove the unnecessary dependency
from security.h, it only needs forward declarations.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/security.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 18800b0911e5..73f1ef625d40 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -31,7 +31,6 @@ #include <linux/string.h> #include <linux/mm.h> #include <linux/fs.h> -#include <linux/bpf.h> struct linux_binprm; struct cred; @@ -1732,6 +1731,10 @@ static inline void securityfs_remove(struct dentry *dentry) #endif #ifdef CONFIG_BPF_SYSCALL +union bpf_attr; +struct bpf_map; +struct bpf_prog; +struct bpf_prog_aux; #ifdef CONFIG_SECURITY extern int security_bpf(int cmd, union bpf_attr *attr, unsigned int size); extern int security_bpf_map(struct bpf_map *map, fmode_t fmode); |