Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
0e304baa
Unverified
Commit
0e304baa
authored
Jan 28, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attach: move lxc_proc_context_info to file local scope
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
6f9fe5d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
attach.c
src/lxc/attach.c
+10
-0
attach.h
src/lxc/attach.h
+1
-10
No files found.
src/lxc/attach.c
View file @
0e304baa
...
...
@@ -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
;
...
...
src/lxc/attach.h
View file @
0e304baa
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment