search for: bpf_lsm

Displaying 1 result from an estimated 1 matches for "bpf_lsm".

Did you mean: bpf_lsh
2023 Mar 06
1
ocfs2 xattr
...0.048295] TOMOYO Linux initialized [ 0.048300] LSM support for eBPF active But from the source it seems that eBPF creates all hooks and returns the default value of 0 for inode_init_security: include/linux/lsm_hook_defs.h:LSM_HOOK(int, 0, inode_init_security, struct inode *inode, kernel/bpf/bpf_lsm.c:#define LSM_HOOK(RET, DEFAULT, NAME, ...) \ kernel/bpf/bpf_lsm.c:noinline RET bpf_lsm_##NAME(__VA_ARGS__) \ kernel/bpf/bpf_lsm.c:{ \ kernel/bpf/bpf_lsm.c: return DEFAULT; \ kernel/bpf/bpf_lsm.c:} I suppose the fix would be to...