]> git.proxmox.com Git - mirror_lxc.git/blob - src/lxc/attach.h
Merge pull request #3235 from xinhua9569/master
[mirror_lxc.git] / src / lxc / attach.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2
3 #ifndef __LXC_ATTACH_H
4 #define __LXC_ATTACH_H
5
6 #include <stdbool.h>
7 #include <lxc/attach_options.h>
8 #include <sys/types.h>
9
10 #include "namespace.h"
11
12 struct lxc_conf;
13
14 struct lxc_proc_context_info {
15 char *lsm_label;
16 struct lxc_container *container;
17 signed long personality;
18 unsigned long long capability_mask;
19 int ns_inherited;
20 int ns_fd[LXC_NS_MAX];
21 };
22
23 extern int lxc_attach(struct lxc_container *container,
24 lxc_attach_exec_t exec_function, void *exec_payload,
25 lxc_attach_options_t *options, pid_t *attached_process);
26
27 extern int lxc_attach_remount_sys_proc(void);
28
29 #endif /* __LXC_ATTACH_H */