commit | 2f50623b0edd32c55003bad2c3fecd3e303dcf58 | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Sat Jun 15 06:11:00 2024 -0700 |
committer | Maciej Żenczykowski <maze@google.com> | Sat Jun 15 13:58:27 2024 -0700 |
tree | 6166c7f21abf275de67cf78e51252924eab85112 | |
parent | fe956d9189d17b3f221baeac3c87f8a2019df4fd [diff] |
BpfMap: enforce BPF_F_RDWR_EXCLUSIVE doesn't use cached fd. This prevents creation of 2 SingleWriterBpfMap objects accessing the same map. Note: we never close/flush the cache, so this also prevents the creation of 2 such maps even if they don't simultaneously exist... Test: TreeHugger, atest BpfMapTest fails Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I2754657cdd54a07fcab3bd43b3530ac690bcba18