Smith::Sandbox::Strategy
Inherits Reference < Object
How a command is turned into a process. One implementation confines it, the other does not — and says so, rather than pretending.
Instance methods
active?
Sourcename
Sourcesandboxed?(command : String) : Bool
Whether this command would actually be confined. False for everything when the strategy is off, and false for a command the user listed as unsandboxed.
wrap(command : String) : Tuple(String, Array(String))
Program and arguments, kept apart. The command stays a single argv entry
handed to bash -c, so nothing here can turn it into a second round of
shell parsing.