diff options
| author | Martin KaFai Lau <kafai@fb.com> | 2022-08-17 09:17:37 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2022-08-19 03:06:13 +0300 |
| commit | 1df055d3c7d91878fe7eaa61c1c228c03d4a92b7 (patch) | |
| tree | 5bde29e77ded3bdbfefd8c4da540b17aaac7f899 /tools/perf/scripts/python | |
| parent | cb388e7ee3a824250a66b854adae9f03b70956f1 (diff) | |
| download | linux-1df055d3c7d91878fe7eaa61c1c228c03d4a92b7.tar.xz | |
bpf: net: Change do_ip_setsockopt() to use the sockopt's lock_sock() and capable()
Similar to the earlier patch that avoids sk_setsockopt() from
taking sk lock and doing capable test when called by bpf. This patch
changes do_ip_setsockopt() to use the sockopt_{lock,release}_sock()
and sockopt_[ns_]capable().
Reviewed-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/r/20220817061737.4176402-1-kafai@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
