Thread (15 messages) flat view 15 messages, 6 authors, 2d ago

Re: [PATCH v3 2/2] selftests/bpf: verify mount idmaps reach inode hooks

From: Paul Moore <paul@paul-moore.com>
Date: 2026-09-11 18:15:02
Also in: linux-fsdevel

On Fri, Sep 4, 2026 at 10:48 AM Daan De Meyer via B4 Relay
[off-list ref] wrote:
From: Daan De Meyer <redacted>

Extend the BPF LSM selftest to exercise create, link, symlink, mkdir,
mknod, and permission through both the VFS identity idmap and a real
idmapped tmpfs mount.

Record the idmap observed by each hook and verify that every updated hook
receives the mapping used by the VFS operation. This provides regression
coverage for passing mount idmaps through inode security hooks.

Signed-off-by: Daan De Meyer <redacted>
---
 tools/testing/selftests/bpf/prog_tests/test_lsm.c | 231 ++++++++++++++++++++++
 tools/testing/selftests/bpf/progs/lsm.c           |  79 ++++++++
 2 files changed, 310 insertions(+)
Merged into lsm/dev, thanks everyone!

-- 
paul-moore.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help