]> git.proxmox.com Git - mirror_lxc.git/blame - src/lxc/attach.h
confile: cleanup parse_line()
[mirror_lxc.git] / src / lxc / attach.h
CommitLineData
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
13struct lxc_conf;
14
e0732705 15struct 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 */