summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/core/SharedCache.cpp')
-rw-r--r--view/sharedcache/core/SharedCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/sharedcache/core/SharedCache.cpp b/view/sharedcache/core/SharedCache.cpp
index e4689086..0198ac48 100644
--- a/view/sharedcache/core/SharedCache.cpp
+++ b/view/sharedcache/core/SharedCache.cpp
@@ -368,7 +368,7 @@ void SharedCache::ProcessEntryRegions(const CacheEntry& entry)
mappingRegion.start = mapping.address;
mappingRegion.size = mapping.size;
mappingRegion.name = fmt::format("{}::_data_{}", entry.GetFileName(), lastMappingIndex++);
- mappingRegion.flags = SegmentReadable;
+ mappingRegion.flags = static_cast<BNSegmentFlag>(SegmentReadable | SegmentDenyWrite);
mappingRegion.type = CacheRegionType::DyldData;
// Add the dyld data mapping as a region to the cache.