diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-05-26 14:02:22 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-06-06 15:25:46 +0200 |
| commit | 9af8c8a54f6ef1ec8e97836e456827dd5161b355 (patch) | |
| tree | 80688a15e390015de9d09cccb76ca980e20aedb3 /drivers/platform/wmi/tests/git@git.tavy.me:linux.git | |
| parent | 1a571226cb82503839c6c284d3c7a172c93f19c4 (diff) | |
bpf: add bpf_real_inode() kfunc
Add a sleepable BPF kfunc that resolves the real inode backing a dentry
via d_real_inode(). On overlay/union filesystems the inode attached to
the dentry is the overlay inode which does not carry the underlying
device information. d_real_inode() resolves through the overlay and
returns the inode from the lower, real filesystem.
This is used in the RestrictFilesytemAccess bpf program that has been
merged into systemd a little while ago.
Link: https://github.com/systemd/systemd/pull/41340 [1]
Link: https://patch.msgid.link/20260526-work-bpf-verity-v2-1-cd0b1850d31b@kernel.org
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'drivers/platform/wmi/tests/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
