From 0e304baae8ac30a19775bb6c6bcdfe624e4535a9 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Thu, 28 Jan 2021 17:55:44 +0100 Subject: [PATCH] attach: move lxc_proc_context_info to file local scope Signed-off-by: Christian Brauner --- src/lxc/attach.c | 10 ++++++++++ src/lxc/attach.h | 11 +---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 1d08362ff..a7c1c7126 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -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; diff --git a/src/lxc/attach.h b/src/lxc/attach.h index 5649edd10..66b9796a3 100644 --- a/src/lxc/attach.h +++ b/src/lxc/attach.h @@ -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, -- 2.47.2