]>
Commit | Line | Data |
---|---|---|
cc73685d | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
e0732705 | 2 | |
f1a4a029 ÇO |
3 | #ifndef __LXC_ATTACH_H |
4 | #define __LXC_ATTACH_H | |
e0732705 | 5 | |
877f3a04 | 6 | #include <stdbool.h> |
f2363e38 | 7 | #include <lxc/attach_options.h> |
6f4f1937 | 8 | #include <sys/types.h> |
e0732705 | 9 | |
9f68a800 | 10 | #include "compiler.h" |
877f3a04 CB |
11 | #include "namespace.h" |
12 | ||
2c4ea790 SH |
13 | struct lxc_conf; |
14 | ||
e0732705 | 15 | struct lxc_proc_context_info { |
fe4de9a6 | 16 | char *lsm_label; |
2c4ea790 | 17 | struct lxc_container *container; |
9b8e3c96 | 18 | signed long personality; |
e0732705 | 19 | unsigned long long capability_mask; |
877f3a04 CB |
20 | int ns_inherited; |
21 | int ns_fd[LXC_NS_MAX]; | |
af04d847 | 22 | struct lsm_ops *lsm_ops; |
e0732705 CS |
23 | }; |
24 | ||
9f68a800 CB |
25 | __hidden extern int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function, |
26 | void *exec_payload, lxc_attach_options_t *options, | |
27 | pid_t *attached_process); | |
9c4693b8 | 28 | |
9f68a800 | 29 | __hidden extern int lxc_attach_remount_sys_proc(void); |
e4103cf6 | 30 | |
6f4f1937 | 31 | #endif /* __LXC_ATTACH_H */ |