projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91e8fa2
)
bpf-lsm: Make bpf_lsm_kernel_read_file() as sleepable
author
Roberto Sassu
<roberto.sassu@huawei.com>
Wed, 2 Mar 2022 11:14:02 +0000
(12:14 +0100)
committer
Alexei Starovoitov
<ast@kernel.org>
Fri, 11 Mar 2022 02:57:55 +0000
(18:57 -0800)
Make bpf_lsm_kernel_read_file() as sleepable, so that bpf_ima_inode_hash()
or bpf_ima_file_hash() can be called inside the implementation of this
hook.
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link:
https://lore.kernel.org/bpf/20220302111404.193900-8-roberto.sassu@huawei.com
kernel/bpf/bpf_lsm.c
patch
|
blob
|
history
diff --git
a/kernel/bpf/bpf_lsm.c
b/kernel/bpf/bpf_lsm.c
index
e8d27af
..
064eccb
100644
(file)
--- a/
kernel/bpf/bpf_lsm.c
+++ b/
kernel/bpf/bpf_lsm.c
@@
-187,6
+187,7
@@
BTF_ID(func, bpf_lsm_inode_setxattr)
BTF_ID(func, bpf_lsm_inode_symlink)
BTF_ID(func, bpf_lsm_inode_unlink)
BTF_ID(func, bpf_lsm_kernel_module_request)
+BTF_ID(func, bpf_lsm_kernel_read_file)
BTF_ID(func, bpf_lsm_kernfs_init_security)
#ifdef CONFIG_KEYS