[PATCH 5.7 248/376] bpf: Fix map permissions check