1
0
forked from 0ad/0ad
0ad/source/ps/scripting
Angen 017fe7e263 Restrict access for Read/WriteFile functions
For security reasons planing to restrict access for ReadFile,
ReadFileLines, WriteJSONFile, ReadJSONFile, ListDirectoryFiles,
FileExists to the following folders/files:

"gui, simulation, maps, campaigns, saves/campaigns,
config/matchsettings.json, config/matchsettings.mp.json"
adding "moddata" if some mods need to access and ship custom files that
don't fit into other locations mentioned above

Differential revision: D4617
Reviewed by: @phosit
Comments by: @Stan @vladislavbelov
Fixes: #5850

This was SVN commit r27202.
2022-11-05 08:33:27 +00:00
..
JSInterface_ConfigDB.cpp Remove user.cfg from javascript 2022-11-02 07:21:25 +00:00
JSInterface_ConfigDB.h Do not require restart when chaning Background pause option 2021-08-27 18:54:20 +00:00
JSInterface_Console.cpp Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_Console.h Introduce C++ templates replacements for DEFINE_INTERFACE_X and RegisterFunction macros 2021-03-01 20:52:24 +00:00
JSInterface_Debug.cpp Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
JSInterface_Debug.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_Game.cpp Let the Gamesetup.cpp Autostart (starting from cl) use the gamesettings via the autostart gui page. 2022-03-06 21:12:16 +00:00
JSInterface_Game.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_Hotkey.cpp Uses correct value_type to iterate over the map in JSInterface_Hotkey. Refs a4852c4c01. 2022-05-02 10:03:34 +00:00
JSInterface_Hotkey.h Introduce C++ templates replacements for DEFINE_INTERFACE_X and RegisterFunction macros 2021-03-01 20:52:24 +00:00
JSInterface_Main.cpp Set the size of the overlaybox without relying on the arbitrary initSize 2022-03-02 16:27:11 +00:00
JSInterface_Main.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_Mod.cpp Fix downloanded mods not showing in list until restart 2021-08-22 09:54:16 +00:00
JSInterface_Mod.h Introduce C++ templates replacements for DEFINE_INTERFACE_X and RegisterFunction macros 2021-03-01 20:52:24 +00:00
JSInterface_ModIo.cpp Split off Object-related functions from ScriptInterface 2021-05-13 17:23:52 +00:00
JSInterface_ModIo.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_SavedGame.cpp Split off Object-related functions from ScriptInterface 2021-05-13 17:23:52 +00:00
JSInterface_SavedGame.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_UserReport.cpp Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
JSInterface_UserReport.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_VFS.cpp Restrict access for Read/WriteFile functions 2022-11-05 08:33:27 +00:00
JSInterface_VFS.h Fix non-visual autostart, as well as client/host autostart. 2022-05-15 06:34:17 +00:00
JSInterface_VisualReplay.cpp Fix replay folders with special characters. 2021-11-19 11:34:26 +00:00
JSInterface_VisualReplay.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00