From a00e120bf7be1a1407db89d6e184ad35fcf53adf Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 15 Nov 2018 06:23:44 -0800 Subject: [PATCH] fs.mitm: Make PRODINFO always read-only. --- stratosphere/fs_mitm/source/fsmitm_service.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stratosphere/fs_mitm/source/fsmitm_service.cpp b/stratosphere/fs_mitm/source/fsmitm_service.cpp index 6fb27f846..b8384d26c 100644 --- a/stratosphere/fs_mitm/source/fsmitm_service.cpp +++ b/stratosphere/fs_mitm/source/fsmitm_service.cpp @@ -102,6 +102,9 @@ Result FsMitmService::OpenBisStorage(Out> out const bool allow_writes = this->title_id < 0x0100000000001000; if (bis_partition_id == BisStorageId_Boot0) { storage = std::make_shared(new Boot0Storage(bis_storage, this->title_id)); + } else if (bis_partition_id == BisStorageId_Prodinfo) { + /* PRODINFO should *never* be writable. */ + storage = std::make_shared(new ROProxyStorage(bis_storage)); } else { if (allow_writes) { storage = std::make_shared(new ROProxyStorage(bis_storage));