version 1.1, 2015/10/09 01:37:08 |
version 1.2, 2020/10/18 11:32:01 |
|
|
{ |
{ |
struct ssh_sandbox *box; |
struct ssh_sandbox *box; |
|
|
debug3("%s: preparing pledge sandbox", __func__); |
debug3_f("preparing pledge sandbox"); |
box = xcalloc(1, sizeof(*box)); |
box = xcalloc(1, sizeof(*box)); |
box->child_pid = 0; |
box->child_pid = 0; |
|
|
|
|
ssh_sandbox_child(struct ssh_sandbox *box) |
ssh_sandbox_child(struct ssh_sandbox *box) |
{ |
{ |
if (pledge("stdio", NULL) == -1) |
if (pledge("stdio", NULL) == -1) |
fatal("%s: pledge()", __func__); |
fatal_f("pledge()"); |
} |
} |
|
|
void |
void |
ssh_sandbox_parent_finish(struct ssh_sandbox *box) |
ssh_sandbox_parent_finish(struct ssh_sandbox *box) |
{ |
{ |
free(box); |
free(box); |
debug3("%s: finished", __func__); |
debug3_f("finished"); |
} |
} |
|
|
void |
void |