android_system_bpf/libbpf_android
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Maciej Żenczykowski 5e4aabfcaa Perform map chmod *before* chown
After we chown, we potentially are no longer the owner (if we chown'ed
to a different uid then AID_ROOT) and thus can no longer chmod.

If we chmod before we chown, this problem is eliminated.

This fixes uid != AID_ROOT for maps.

Bug: 218408035
Bug: 237716689
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ifbbe37d8dceff245d4def950712f1847615d5856
2022-07-01 15:56:45 +00:00
..
include bpfloader: support 'shared' maps and per-map/program selinux context 2022-06-21 02:23:09 -07:00
Android.bp remove libbpf_android_headers target 2022-02-08 10:53:56 -08:00
BpfLoadTest.cpp bpfloader: support 'shared' maps and per-map/program selinux context 2022-06-21 02:23:09 -07:00
Loader.cpp Perform map chmod *before* chown 2022-07-01 15:56:45 +00:00
TEST_MAPPING Add bpf to hwasan-postsubmit 2022-03-18 14:17:27 -07:00