diff --git a/staticlibs/native/bpf_headers/include/bpf/BpfRingbuf.h b/staticlibs/native/bpf_headers/include/bpf/BpfRingbuf.h index d7163588fc..cd51004066 100644 --- a/staticlibs/native/bpf_headers/include/bpf/BpfRingbuf.h +++ b/staticlibs/native/bpf_headers/include/bpf/BpfRingbuf.h @@ -151,7 +151,7 @@ class BpfRingbuf : public BpfRingbufBase { inline base::Result BpfRingbufBase::Init(const char* path) { - mRingFd.reset(mapRetrieveRW(path)); + mRingFd.reset(mapRetrieveExclusiveRW(path)); if (!mRingFd.ok()) { return android::base::ErrnoError() << "failed to retrieve ringbuffer at " << path;