Possible duplicates:How to limit the capabilities of lua (calling OS functions, modules, etc.)How to create a secure Lua sandbox?
luaL_openlibs(m_pState);
I use this function to load all libs.I would like to skip all dangerous libraries such as IO, but I just can't find the documentation on how to disable lib.
How to disable certain libraries? Are there more dangerous libraries that can access the script system?
Add the linit.c project to the project and delete all the libraries that you consider dangerous. To delete individual functions, set them to zero. See Also source demo of Lua .
linit.c
Source: https://habr.com/ru/post/894515/More articles:Error in the implementation of WP 7 Uri.IsWellFormedUriString? - uriCannot delete file using streams - javaHow to revive an explosion that removes surrounding bodies? - androidIs it possible to mark a .net function with the Obsolete attribute - c #WPF: is it not possible to load the user interface in a background thread? - multithreadingHow to limit lua's capabilities (calling OS functions, modules, etc.) - luaHow to activate a specific book and specific sheet? - vbaFactory associations of girls with sparky mismatch - ruby-on-rails-3Parse HTTP Post Response Response in C ++ - c ++How can I put a string like "==========" quickly in vim - vimAll Articles