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
23b116e3
Commit
23b116e3
authored
Feb 25, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attach: Defined MS_REC and MS_SLAVE if not set
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
e5a5ff00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
attach.c
src/lxc/attach.c
+8
-0
lxc_usernsexec.c
src/lxc/lxc_usernsexec.c
+8
-0
No files found.
src/lxc/attach.c
View file @
23b116e3
...
...
@@ -64,6 +64,14 @@
# define SOCK_CLOEXEC 02000000
#endif
#ifndef MS_REC
#define MS_REC 16384
#endif
#ifndef MS_SLAVE
#define MS_SLAVE (1<<19)
#endif
lxc_log_define
(
lxc_attach
,
lxc
);
static
struct
lxc_proc_context_info
*
lxc_proc_get_context_info
(
pid_t
pid
)
...
...
src/lxc/lxc_usernsexec.c
View file @
23b116e3
...
...
@@ -44,6 +44,14 @@
#include "namespace.h"
#include "utils.h"
#ifndef MS_REC
#define MS_REC 16384
#endif
#ifndef MS_SLAVE
#define MS_SLAVE (1<<19)
#endif
int
unshare
(
int
flags
);
static
void
usage
(
const
char
*
name
)
...
...
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