Only make parts of the initial filesystem writable

This prevents overwriting the program binary or other sentitive paths
like /Data/Static.ini from Lua.
This commit is contained in:
Martin Natano
2022-03-13 12:46:14 -07:00
committed by teejusb
parent 1036d20e11
commit c99477f046
4 changed files with 66 additions and 11 deletions
+1 -1
View File
@@ -1006,7 +1006,7 @@ int sm_main(int argc, char* argv[])
FILEMAN = new RageFileManager( argv[0] );
FILEMAN->MountInitialFilesystems();
bool bPortable = DoesFileExist("Portable.ini");
bool bPortable = DoesFileExist("/Portable.ini");
if( !bPortable )
FILEMAN->MountUserFilesystems();