bpf: lsm: Remove hook to bpf_task_storage_free
free_task() already calls bpf_task_storage_free(). It is not necessary to call it again on security_task_free(). Remove the hook. Signed-off-by: Song Liu <song@kernel.org> Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org> Acked-by: Matt Bobrowski <mattbobrowski@google.com> Link: https://patch.msgid.link/20241212075956.2614894-1-song@kernel.org
This commit is contained in:
parent
06103dccbb
commit
58ecb3a789
1 changed files with 0 additions and 1 deletions
|
@ -13,7 +13,6 @@ static struct security_hook_list bpf_lsm_hooks[] __ro_after_init = {
|
|||
#include <linux/lsm_hook_defs.h>
|
||||
#undef LSM_HOOK
|
||||
LSM_HOOK_INIT(inode_free_security, bpf_inode_storage_free),
|
||||
LSM_HOOK_INIT(task_free, bpf_task_storage_free),
|
||||
};
|
||||
|
||||
static const struct lsm_id bpf_lsmid = {
|
||||
|
|
Loading…
Add table
Reference in a new issue