attach: move lxc_proc_context_info to file local scope

parent 6f9fe5d0
......@@ -55,6 +55,16 @@ lxc_log_define(attach, lxc);
/* Define default options if no options are supplied by the user. */
static lxc_attach_options_t attach_static_default_options = LXC_ATTACH_OPTIONS_DEFAULT;
struct lxc_proc_context_info {
char *lsm_label;
struct lxc_container *container;
signed long personality;
unsigned long long capability_mask;
int ns_inherited;
int ns_fd[LXC_NS_MAX];
struct lsm_ops *lsm_ops;
};
static struct lxc_proc_context_info *lxc_proc_get_context_info(pid_t pid)
{
__do_free char *line = NULL;
......
......@@ -11,16 +11,7 @@
#include "namespace.h"
struct lxc_conf;
struct lxc_proc_context_info {
char *lsm_label;
struct lxc_container *container;
signed long personality;
unsigned long long capability_mask;
int ns_inherited;
int ns_fd[LXC_NS_MAX];
struct lsm_ops *lsm_ops;
};
struct lxc_container;
__hidden extern int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function,
void *exec_payload, lxc_attach_options_t *options,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment