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

Function box_init

isolate.c:1001–1010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

999}
1000
1001static void
1002box_init(void)
1003{
1004 if (box_id < 0 || box_id >= cf_num_boxes)
1005 die("Sandbox ID out of range (allowed: 0-%d)", cf_num_boxes-1);
1006 box_uid = cf_first_uid + box_id;
1007 box_gid = cf_first_gid + box_id;
1008
1009 snprintf(box_dir, sizeof(box_dir), "%s/%d", cf_box_root, box_id);
1010}
1011
1012/*** Commands ***/
1013

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…