-
Notifications
You must be signed in to change notification settings - Fork 111
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
Add bpf_getxattr #3189
Add bpf_getxattr #3189
Conversation
Master branch: b40b414 |
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=652161 expired. Closing PR. |
Master branch: d4609a5 |
ecdb2e1
to
aa4cce7
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=652506 expired. Closing PR. |
Master branch: 6dc7a0b |
aa4cce7
to
b456cac
Compare
Master branch: 395e942 |
b456cac
to
939cc20
Compare
Master branch: 41188e9 |
939cc20
to
5d86683
Compare
Master branch: 780d3d5 |
5d86683
to
ff79c03
Compare
Master branch: 2f6d1e0 |
ff79c03
to
f02a1b9
Compare
This allows to declare a kfunc as sleepable and prevents its use in a non sleepable program. Acked-by: KP Singh <kpsingh@kernel.org> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: KP Singh <kpsingh@kernel.org>
kfuncs can handle pointers to memory when the next argument is the size of the memory that can be read and verify these as ARG_CONST_SIZE_OR_ZERO Similarly add support for string constants (const char *) and verify it similar to ARG_PTR_TO_CONST_STR. Signed-off-by: KP Singh <kpsingh@kernel.org>
In preparation for the addition of bpf_getxattr kfunc. Signed-off-by: KP Singh <kpsingh@kernel.org>
Master branch: fd75733 |
LSMs like SELinux store security state in xattrs. bpf_getxattr enables BPF LSM to implement similar functionality. In combination with bpf_local_storage, xattrs can be used to develop more complex security policies. This kfunc wraps around __vfs_getxattr which can sleep and is, therefore, limited to sleepable programs using the newly added sleepable_set for kfuncs. Signed-off-by: KP Singh <kpsingh@kernel.org>
A simple test that adds an xattr on a copied /bin/ls and reads it back when the copied ls is executed. Signed-off-by: KP Singh <kpsingh@kernel.org>
f02a1b9
to
337a23f
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=653430 expired. Closing PR. |
Pull request for series with
subject: Add bpf_getxattr
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=652161