sandbox.h 453 Bytes
Newer Older
ale's avatar
ale committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __suexec_sandbox_H
#define __suexec_sandbox_H 1

#include <sys/types.h>

#define HOSTNAME_SIZE 64

struct sandbox_config {
  char hostname[HOSTNAME_SIZE];
  int fd;

  uid_t uid;
  gid_t gid;
  int argc;
  char *argv0;
  char **argv;
  char *new_root_dir;
18
  int enable_cgroups;
godog's avatar
godog committed
19
  int enable_namespaces;
ale's avatar
ale committed
20
21
22
23
24
25
};

int sandbox_config_init(struct sandbox_config *, uid_t, gid_t, int, char *, char **);
int sandbox_start(struct sandbox_config *);

#endif