linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] security.bpf xattr name prefix
@ 2024-10-02 21:46 Song Liu
  2024-10-02 21:46 ` [PATCH bpf-next 1/2] fs/xattr: bpf: Introduce " Song Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Song Liu @ 2024-10-02 21:46 UTC (permalink / raw)
  To: bpf, linux-fsdevel, linux-kernel
  Cc: kernel-team, andrii, eddyz87, ast, daniel, martin.lau, viro,
	brauner, jack, kpsingh, mattbobrowski, Song Liu

Follow up discussion in LPC 2024 [1], that we need security.bpf xattr
prefix. This set adds "security.bpf" xattr name prefix, and allows
bpf kfuncs bpf_get_[file|dentry]_xattr() to read these xattrs.


[1] https://lpc.events/event/18/contributions/1940/

Song Liu (2):
  fs/xattr: bpf: Introduce security.bpf xattr name prefix
  selftests/bpf: Extend test fs_kfuncs to cover security.bpf xattr names

 fs/bpf_fs_kfuncs.c                            | 19 ++++++++-
 include/uapi/linux/xattr.h                    |  4 ++
 .../selftests/bpf/prog_tests/fs_kfuncs.c      | 40 ++++++++++++++-----
 .../selftests/bpf/progs/test_get_xattr.c      | 30 ++++++++++++--
 4 files changed, 78 insertions(+), 15 deletions(-)

--
2.43.5

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2024-10-31 16:11 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-02 21:46 [PATCH bpf-next 0/2] security.bpf xattr name prefix Song Liu
2024-10-02 21:46 ` [PATCH bpf-next 1/2] fs/xattr: bpf: Introduce " Song Liu
2024-10-07  8:39   ` Jiri Olsa
2024-10-07 17:15     ` Song Liu
2024-10-14 10:18   ` Christian Brauner
2024-10-02 21:46 ` [PATCH bpf-next 2/2] selftests/bpf: Extend test fs_kfuncs to cover security.bpf xattr names Song Liu
2024-10-15  5:07   ` Christoph Hellwig
2024-10-15  5:21     ` Song Liu
2024-10-15  5:25       ` Christoph Hellwig
2024-10-15  5:52         ` Song Liu
2024-10-15  6:42           ` Christoph Hellwig
2024-10-15 13:54             ` Song Liu
2024-10-16  7:49               ` Christoph Hellwig
2024-10-16 13:51           ` Jan Kara
2024-10-16 14:51             ` Christian Brauner
2024-10-16 16:38               ` Song Liu
2024-10-17 15:03               ` Christoph Hellwig
2024-10-21 13:24                 ` Christian Brauner
2024-10-23  6:45                   ` Christoph Hellwig
2024-10-30 20:44                     ` Song Liu
2024-10-31  6:56                       ` Christoph Hellwig
2024-10-31 15:56                         ` Song Liu
2024-10-31 16:10                           ` Alexei Starovoitov
2024-10-11 17:40 ` [PATCH bpf-next 0/2] security.bpf xattr name prefix Song Liu
2024-10-14 10:18   ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).