MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / executeNsjail

Function executeNsjail

lib/exec.ts:380–394  ·  view source on GitHub ↗
(
    command: string,
    args: string[],
    options: ExecutionOptions,
)

Source from the content-addressed store, hash-verified

378}
379
380async 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
396function sandboxCEWrapper(command: string, args: string[], options: ExecutionOptions) {
397 const nsOpts = getSandboxCEWrapperOptions(command, args, options);

Callers 1

exec.tsFile · 0.85

Calls 3

getNsJailOptionsFunction · 0.85
executeDirectFunction · 0.85

Tested by

no test coverage detected