fix: Add PROT_READ to ctfser mmap flags
[babeltrace.git] / ctfser / ctfser.c
index e06972b9801c5d059788ef92543d7eb0ff3e18e7..bb9590ab3741a35f81c7c722bd09b62aac0f93d6 100644 (file)
@@ -52,7 +52,8 @@ uint64_t get_packet_size_increment_bytes(void)
 static inline
 void mmap_align_ctfser(struct bt_ctfser *ctfser)
 {
-       ctfser->base_mma = mmap_align(ctfser->cur_packet_size_bytes, PROT_WRITE,
+       ctfser->base_mma = mmap_align(ctfser->cur_packet_size_bytes,
+               PROT_READ | PROT_WRITE,
                MAP_SHARED, ctfser->fd, ctfser->mmap_offset);
 }
 
This page took 0.024116 seconds and 4 git commands to generate.