MCPcopy Create free account
hub / github.com/ioi/isolate / box_inside

Function box_inside

isolate.c:931–949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929}
930
931static int
932box_inside(char **args)
933{
934 cg_enter();
935 setup_root();
936 setup_net();
937 setup_rlimits();
938 setup_credentials();
939 setup_seccomp();
940 setup_fds();
941 char **env = setup_environment();
942
943 if (set_cwd && chdir(set_cwd))
944 die("chdir: %m");
945
946 execve(args[0], args, env);
947 fprintf(stderr, "execve(\"%s\"): %m\n", args[0]);
948 exit(127);
949}
950
951/*** Proxy ***/
952

Callers 1

box_proxyFunction · 0.85

Calls 8

cg_enterFunction · 0.85
setup_rootFunction · 0.85
setup_netFunction · 0.85
setup_rlimitsFunction · 0.85
setup_credentialsFunction · 0.85
setup_seccompFunction · 0.85
setup_fdsFunction · 0.85
setup_environmentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…