forked from aristanetworks/bst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outer.h
39 lines (31 loc) · 871 Bytes
/
outer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* Copyright © 2020 Arista Networks, Inc. All rights reserved.
*
* Use of this source code is governed by the MIT license that can be found
* in the LICENSE file.
*/
#ifndef OUTER_H
# define OUTER_H
# include <unistd.h>
# include "userns.h"
# include "net.h"
struct outer_helper {
int unshare_user;
int unshare_net;
const char **persist;
id_map uid_desired;
id_map gid_desired;
struct nic_options *nics;
size_t nnics;
enum cgroup_driver cgroup_driver;
char *cgroup_path;
struct climit *climits;
size_t nclimits;
pid_t pid;
int fd;
};
ssize_t burn(int dirfd, char *path, char *data);
void outer_helper_spawn(struct outer_helper *helper);
void outer_helper_sendpid(const struct outer_helper *helper, pid_t pid);
void outer_helper_sync(const struct outer_helper *helper);
void outer_helper_close(struct outer_helper *helper);
#endif /* !OUTER_H */