]> www.infradead.org Git - users/dwmw2/linux.git/commit
bpf: Add kfunc bpf_get_dentry_xattr() to read xattr from dentry
authorSong Liu <song@kernel.org>
Tue, 6 Aug 2024 23:09:03 +0000 (16:09 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 7 Aug 2024 18:26:54 +0000 (11:26 -0700)
commitac13a4261afe81ca423eddd8e6571078fe2a7cea
tree246708b788e0667c88f3294d90fbe431b0b32963
parentfa4e5afa9758e6567a6a54ea7bf53d570ec94881
bpf: Add kfunc bpf_get_dentry_xattr() to read xattr from dentry

This kfunc can be used in LSM hooks with dentry, such as:

  security_inode_listxattr
  security_inode_permission

and many more.

Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240806230904.71194-3-song@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
fs/bpf_fs_kfuncs.c