-
Notifications
You must be signed in to change notification settings - Fork 5
bpf: Add more dentry kfuncs for BPF LSM programs #6038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpf: Add more dentry kfuncs for BPF LSM programs #6038
Conversation
|
Upstream branch: d4680a1 |
2225dd1 to
7eb88ba
Compare
|
Upstream branch: d4680a1 |
a64016e to
7906e9e
Compare
7eb88ba to
aa8eaa2
Compare
|
Upstream branch: d4680a1 |
7906e9e to
e7d3c5c
Compare
aa8eaa2 to
4a6417f
Compare
|
Upstream branch: d4680a1 |
e7d3c5c to
a001a12
Compare
4a6417f to
0a501c6
Compare
Add six new BPF kfuncs that enable BPF LSM programs to safely interact with dentry objects: - bpf_dget(): Acquire reference on dentry - bpf_dput(): Release reference on dentry - bpf_dget_parent(): Get referenced parent dentry - bpf_d_find_alias(): Find referenced alias dentry for inode - bpf_file_dentry(): Get dentry from file - bpf_file_vfsmount(): Get vfsmount from file All kfuncs are currently restricted to BPF_PROG_TYPE_LSM programs. Signed-off-by: David Windsor <[email protected]>
Add BPF selftests that exercise the new dentry kfuncs via an LSM program attached to the file_open hook. Signed-off-by: David Windsor <[email protected]>
|
Upstream branch: dd948aa |
a001a12 to
830e296
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1005898 expired. Closing PR. |
Pull request for series with
subject: bpf: Add more dentry kfuncs for BPF LSM programs
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1005898