-
Notifications
You must be signed in to change notification settings - Fork 14
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
Eval stuff securely #25
Comments
Guess what, we kinda lost it during the transition to Perl 6 bots. In fact, now I see that not all of the things were restricted. Whoops! Hopefully we will be able to get rid of it soon. See issue #25.
This could also solve the problem we've been having recently where a bot dies and leave the rakudo directory for the commit it was currently using lying around. This blocks any other bots from running with that commit. This is particularly problematic because a high percentage of the bot invocations use HEAD, so if the bot dies it could essentially prevent most use of the other bots. |
A short term solution would be to add the name of the bot to the path it extracts into, then at least if it dies it won't block the other bots. |
That would mean building rakudo three times for each commit… |
Ugh, right, forgot that paths are hard-coded when it's built. |
This commit resolves many long-standing problems: * Issue #25 (RESTRICTED setting) is resolved. Bots are still not fully secure, but now they are more secure that they've even been given that RESTRICTED setting is entirely useless * Issue #52 (predictable filenames) is no longer blocked * Issue #55 (sandboxable) is probably no longer relevant * Issue #118 (ramfs for /tmp) now needs an update * Issue #144 (bots leaving stuff behind) is resolved because every bot has its own /tmp * Issue #183 (source ip issue) possibly has a systemd solution for it * Issue #197 is tackled a little bit also because now there's a memory limit for every bot (3G for now, we can probably make it smaller) * Issue #238 (e.g. forkbombs) is basically resolved, but needs a bit more work * Moreover, there's now a watchdog that makes sure that bots come back online if something bad happens Not that all of this wasn't possible without systemd, it's just that it is so much easier now. Feel free to hate me as much as you want.
To resolve this fully we'd need to set SystemCallFilter and some other things also. It will always be a balance between tightening the nuts and letting people run stuff freely, but right now we're a bit too forgiving. |
This is going to be easy once the work on #23 is finished.
The text was updated successfully, but these errors were encountered: