selftests/bpf: Verify that rebinding to port < 1024 from BPF works
authorStanislav Fomichev <sdf@google.com>
Wed, 27 Jan 2021 19:31:40 +0000 (11:31 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 28 Jan 2021 02:18:15 +0000 (18:18 -0800)
commit8259fdeb3032621c7cc7aa3f2676ffd470303305
treef02803ec509523b0e52fca096d6a2388764c0859
parent772412176fb98493158929b220fe250127f611af
selftests/bpf: Verify that rebinding to port < 1024 from BPF works

Return 3 to indicate that permission check for port 111
should be skipped.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20210127193140.3170382-2-sdf@google.com
tools/testing/selftests/bpf/prog_tests/bind_perm.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/bind_perm.c [new file with mode: 0644]