]>
Commit | Line | Data |
---|---|---|
cc73685d CB |
1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
2 | ||
f1a4a029 ÇO |
3 | #ifndef __LXC_NAMESPACE_H |
4 | #define __LXC_NAMESPACE_H | |
0ad19a3f | 5 | |
5bb3ba8a | 6 | #include <sched.h> |
bb196a1a CB |
7 | #include <unistd.h> |
8 | #include <sys/syscall.h> | |
5bb3ba8a | 9 | |
9e20bf04 CB |
10 | #include "compiler.h" |
11 | ||
9662e444 | 12 | enum { |
29ed9c13 | 13 | LXC_NS_USER, |
9662e444 CB |
14 | LXC_NS_MNT, |
15 | LXC_NS_PID, | |
16 | LXC_NS_UTS, | |
17 | LXC_NS_IPC, | |
9662e444 CB |
18 | LXC_NS_NET, |
19 | LXC_NS_CGROUP, | |
70fd7fc9 | 20 | LXC_NS_TIME, |
9662e444 CB |
21 | LXC_NS_MAX |
22 | }; | |
23 | ||
9e20bf04 | 24 | __hidden extern const struct ns_info { |
9662e444 | 25 | const char *proc_name; |
25c659d5 | 26 | const char *proc_path; |
9662e444 CB |
27 | int clone_flag; |
28 | const char *flag_name; | |
18b3b9c1 | 29 | const char *env_name; |
9662e444 CB |
30 | } ns_info[LXC_NS_MAX]; |
31 | ||
9e20bf04 CB |
32 | __hidden extern int lxc_namespace_2_cloneflag(const char *namespace); |
33 | __hidden extern int lxc_namespace_2_ns_idx(const char *namespace); | |
34 | __hidden extern int lxc_namespace_2_std_identifiers(char *namespaces); | |
35 | __hidden extern int lxc_fill_namespace_flags(char *flaglist, int *flags); | |
39a5d5fe | 36 | |
9e20bf04 | 37 | #endif /* __LXC_NAMESPACE_H */ |