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
421a68d6
Unverified
Commit
421a68d6
authored
Jan 10, 2019
by
Stéphane Graber
Committed by
GitHub
Jan 10, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2780 from brauner/2019-01-10/cgroupns_skip_on_einval
start: handle missing CLONE_NEWCGROUP
parents
888aad37
bca7c59c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
start.c
src/lxc/start.c
+9
-3
No files found.
src/lxc/start.c
View file @
421a68d6
...
@@ -1252,10 +1252,16 @@ static int do_start(void *data)
...
@@ -1252,10 +1252,16 @@ static int do_start(void *data)
if
(
handler
->
ns_clone_flags
&
CLONE_NEWCGROUP
)
{
if
(
handler
->
ns_clone_flags
&
CLONE_NEWCGROUP
)
{
ret
=
unshare
(
CLONE_NEWCGROUP
);
ret
=
unshare
(
CLONE_NEWCGROUP
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
INFO
(
"Failed to unshare CLONE_NEWCGROUP"
);
if
(
errno
!=
EINVAL
)
{
goto
out_warn_father
;
SYSERROR
(
"Failed to unshare CLONE_NEWCGROUP"
);
goto
out_warn_father
;
}
handler
->
ns_clone_flags
&=
~
CLONE_NEWCGROUP
;
SYSINFO
(
"Kernel does not support CLONE_NEWCGROUP"
);
}
else
{
INFO
(
"Unshared CLONE_NEWCGROUP"
);
}
}
INFO
(
"Unshared CLONE_NEWCGROUP"
);
}
}
/* Add the requested environment variables to the current environment to
/* Add the requested environment variables to the current environment to
...
...
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