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
1 file changed