]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
attach: move lxc_proc_context_info to file local scope
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 28 Jan 2021 16:55:44 +0000 (17:55 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 28 Jan 2021 16:57:51 +0000 (17:57 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c
src/lxc/attach.h

index 1d08362ff193a32e82f2b71f293657572fc47fb0..a7c1c71262ed2dd111983fe9756aae1447af05bd 100644 (file)
@@ -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;
index 5649edd10fe80015ce858bfe1d026f12b256767d..66b9796a39fd6b5d56654aebf669e28a0989c311 100644 (file)
 #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,