]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "selftests: bpf: Don't try to read files without read permission"
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 1 Nov 2019 00:51:27 +0000 (17:51 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 1 Nov 2019 12:13:21 +0000 (13:13 +0100)
commit320be39099dfb89ae265d7fa5c2cb574fffd9a89
treef6be77f37a896c164551a982a1f24c948b69e457
parent0c707729e41bb55e1e30ddda6495df812338301f
Revert "selftests: bpf: Don't try to read files without read permission"

This reverts commit 5e0d4b4cf8d8 ("selftests: bpf: Don't try to read
files without read permission").

Quoted commit does not work at all, and was never tested.
Script requires root permissions (and tests for them)
and os.access() will always return true for root.

The correct fix is needed in the bpf tree, so let's just
revert and save ourselves the merge conflict.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Cc: Jiri Pirko <jiri@resnulli.us>
Link: https://lore.kernel.org/bpf/20191101005127.1355-1-jakub.kicinski@netronome.com
tools/testing/selftests/bpf/test_offload.py