]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs/xattr: bpf: Introduce security.bpf. xattr name prefix
authorSong Liu <song@kernel.org>
Thu, 30 Jan 2025 21:35:45 +0000 (13:35 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 14 Feb 2025 03:35:31 +0000 (19:35 -0800)
commit531118f1ccfc209d6d100f338eed064636f6da9b
treeb83ffc302f68babdc7f2e6b1d3c6d59e9ed304d5
parentb99f27e90268b1a814c13f8bd72ea1db448ea257
fs/xattr: bpf: Introduce security.bpf. xattr name prefix

Introduct new xattr name prefix security.bpf., and enable reading these
xattrs from bpf kfuncs bpf_get_[file|dentry]_xattr().

As we are on it, correct the comments for return value of
bpf_get_[file|dentry]_xattr(), i.e. return length the xattr value on
success.

Signed-off-by: Song Liu <song@kernel.org>
Acked-by: Christian Brauner <brauner@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Matt Bobrowski <mattbobrowski@google.com>
Link: https://lore.kernel.org/r/20250130213549.3353349-2-song@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
fs/bpf_fs_kfuncs.c
include/uapi/linux/xattr.h