-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit loaded lua modules #4
Comments
You can achieve the same result by nulling the variable containing the library via assign().
|
Isn't it still available trough other means? Like the loaded libs. |
would any ini option like |
Apparently it is not all that simple as this after reading up on Lua Sandboxes. It might be worth having a section about sand-boxing in the docs somewhere. As I imagine most people want to use it for that purpose in PHP. |
In the construct of the Lua class the following is called
luaL_openlibs(L);
This loads all available lua libs. I want to be able to not load the OS and IO lib because I'm trying to create a secure sandbox to run third party code that should not be able to access anything else than the PHP methods I expose.
Could you create a way to limit the Lua modules to load?
The text was updated successfully, but these errors were encountered: