Private API. More...
Go to the source code of this file.
Data Structures | |
struct | sandbox_code |
Code that can be run inside a sandbox (a function). More... | |
struct | binary |
Represents a function in an executable. More... |
Typedefs | |
typedef sandbox *(* | spawner )(struct sandbox_code *, char **, struct channel *) |
Signature for functions that actually do the work of spawning sandboxes: int foo(sandbox_code *code, char **args, channel *talkback). | |
typedef struct binary | binary |
Represents a function in an executable. |
Functions | |
int | argsfd (char **args) |
Convert arguments to a shared memory segment. | |
struct sandbox_code * | sandbox_code_alloc (void) |
Allocate a sandbox_code instance (not including platform-specific part). | |
void | sandbox_code_free (struct sandbox_code *) |
Destroy a sandbox_code instance. |
Private API.
Definition in file libsandbox-internal.h.
typedef sandbox*(* spawner)(struct sandbox_code *, char **, struct channel *) |
Signature for functions that actually do the work of spawning sandboxes: int foo(sandbox_code *code, char **args, channel *talkback).
TODO: use something more structured like 'nv' for passing arguments.
Definition at line 61 of file libsandbox-internal.h.
int argsfd | ( | char ** | args | ) |
Convert arguments to a shared memory segment.
Definition at line 52 of file args.c.
References MAX_ARGC, and MAX_ARGLEN.
|
read |
Allocate a sandbox_code instance (not including platform-specific part).
Definition at line 40 of file libsandbox.c.
Referenced by sandbox_define_fd().
void sandbox_code_free | ( | struct sandbox_code * | ) |