bpf: re-fix skip write only files in debugfs
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 4 Nov 2019 14:27:02 +0000 (15:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Nov 2019 19:34:34 +0000 (11:34 -0800)
commit56c1291ee48b4da2a70aa116098c2afc4a54783b
treef03e2ccc5fb38b46dd0dd7f41254dc727c838009
parent54e0602d796ceb20b292e9d364046b6b2724f735
bpf: re-fix skip write only files in debugfs

Commit 5bc60de50dfe ("selftests: bpf: Don't try to read files without
read permission") got reverted as the fix was not working as expected
and real fix came in via 8101e069418d ("selftests: bpf: Skip write
only files in debugfs"). When bpf-next got merged into net-next, the
test_offload.py had a small conflict. Fix the resolution in ae8a76fb8b5d
iby not reintroducing 5bc60de50dfe again.

Fixes: ae8a76fb8b5d ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jakub Kicinski <jakub.kicinski@netronome.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/test_offload.py