diff options
| author | KP Singh <[email protected]> | 2020-08-25 20:29:19 +0200 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-08-25 15:00:04 -0700 |
| commit | cd324d7abb3d850ae083bda1239f800abe21fe25 (patch) | |
| tree | f24d4ea8decc92139a1acaaf8e68024420293bb5 /tools/perf/scripts/python | |
| parent | 30897832d8b97e93833fb52c0a02951db3692ed2 (diff) | |
bpf: Add selftests for local_storage
inode_local_storage:
* Hook to the file_open and inode_unlink LSM hooks.
* Create and unlink a temporary file.
* Store some information in the inode's bpf_local_storage during
file_open.
* Verify that this information exists when the file is unlinked.
sk_local_storage:
* Hook to the socket_post_create and socket_bind LSM hooks.
* Open and bind a socket and set the sk_storage in the
socket_post_create hook using the start_server helper.
* Verify if the information is set in the socket_bind hook.
Signed-off-by: KP Singh <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions