(
command: string,
args: string[],
options: ExecutionOptions,
)
| 378 | } |
| 379 | |
| 380 | async function executeNsjail( |
| 381 | command: string, |
| 382 | args: string[], |
| 383 | options: ExecutionOptions, |
| 384 | ): Promise<UnprocessedExecResult> { |
| 385 | const nsOpts = getNsJailOptions('execute', command, args, options); |
| 386 | const result = await executeDirect( |
| 387 | execProps<string>('nsjail'), |
| 388 | nsOpts.args, |
| 389 | nsOpts.options, |
| 390 | nsOpts.filenameTransform, |
| 391 | ); |
| 392 | if (hasNsjailPermissionsIssue(result)) result.okToCache = false; |
| 393 | return result; |
| 394 | } |
| 395 | |
| 396 | function sandboxCEWrapper(command: string, args: string[], options: ExecutionOptions) { |
| 397 | const nsOpts = getSandboxCEWrapperOptions(command, args, options); |
no test coverage detected