diff options
| author | 2022-08-16 23:17:44 -0700 | |
|---|---|---|
| committer | 2022-08-18 17:06:13 -0700 | |
| commit | 40cd308ea57cf68ad67f912b98fca570d107cca0 (patch) | |
| tree | 56b980d0e4f93d220f37b7a874ec3850b3efc37e /net/core | |
| parent | bpf: net: Change do_ip_setsockopt() to use the sockopt's lock_sock() and capable() (diff) | |
| download | linux-dev-40cd308ea57cf68ad67f912b98fca570d107cca0.tar.xz linux-dev-40cd308ea57cf68ad67f912b98fca570d107cca0.zip | |
bpf: net: Change do_ipv6_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_ipv6_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/20220817061744.4176893-1-kafai@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions
