Page MenuHomePhabricator

Apply shell restrictions (firejail) to Scribunto/LuaStandalone
Open, MediumPublic

Description

https://www.mediawiki.org/wiki/Manual:Shell_framework#Restrictions

It also doesn't use wfShellExec()/Shell::command() so I'm not sure if this will require something custom or what.

Event Timeline

Legoktm triaged this task as Medium priority.Dec 15 2017, 3:04 AM
Legoktm created this task.

MediaWiki\Shell\Command seems designed for executing a process to perform some specific task, waiting for it to complete and then returning the results.

LuaStandalone executes a process that runs a simple "server" to accept commands on stdin and write results to stdout, so startup costs are paid once per Parser instance rather than once per #invoke during every parse.