Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bpf-lsm: Make bpf_lsm_kernel_read_file() as sleepable

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

authored by

Roberto Sassu and committed by
Alexei Starovoitov
df6b3039 91e8fa25

+1
+1
kernel/bpf/bpf_lsm.c
··· 187 187 BTF_ID(func, bpf_lsm_inode_symlink) 188 188 BTF_ID(func, bpf_lsm_inode_unlink) 189 189 BTF_ID(func, bpf_lsm_kernel_module_request) 190 + BTF_ID(func, bpf_lsm_kernel_read_file) 190 191 BTF_ID(func, bpf_lsm_kernfs_init_security) 191 192 192 193 #ifdef CONFIG_KEYS