diff options
| author | Mahe Tardy <mahe.tardy@gmail.com> | 2026-08-13 11:05:36 +0000 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2026-08-15 23:36:18 +0200 |
| commit | 5bd369c05576ec12f62f02c65b576bf0bf074131 (patch) | |
| tree | 1f1bffdb9f5b87cb8b111eeb191156bd67ce6e77 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | ce7c9f6c599b640c1be288fd1af3289d1406d559 (diff) | |
net: Add connect_socket() helper
Add a helper that connects an existing socket while invoking the LSM
hook. Reuse it in __sys_connect_file() to avoid duplicating the connect
logic. Other socket operations have equivalent helpers that trigger the
appropriate LSM hooks that can be reused, this one was the only one
missing. This will be used in the next commit for a new BPF kfunc that
needs to connect a socket and trigger the LSM hook.
Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Acked-by: Song Liu <song@kernel.org>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://lore.kernel.org/bpf/20260813110540.103550-2-mahe.tardy@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
