Skip to content

Commit

Permalink
attach: move lxc_proc_context_info to file local scope
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Jan 28, 2021
1 parent 6f9fe5d commit 0e304ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
10 changes: 10 additions & 0 deletions src/lxc/attach.c
Expand Up @@ -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;
Expand Down
11 changes: 1 addition & 10 deletions src/lxc/attach.h
Expand Up @@ -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,
Expand Down

0 comments on commit 0e304ba

Please sign in to comment.