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
7c8b10e5
Unverified
Commit
7c8b10e5
authored
Jun 29, 2020
by
Stéphane Graber
Committed by
GitHub
Jun 29, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3465 from brauner/2020-06-19/clone_into_cgroup
clone_into_cgroup: fixes
parents
d5827bc0
0aff04e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
start.c
src/lxc/start.c
+1
-1
start.h
src/lxc/start.h
+3
-1
No files found.
src/lxc/start.c
View file @
7c8b10e5
...
...
@@ -1695,7 +1695,7 @@ static int lxc_spawn(struct lxc_handler *handler)
goto
out_delete_net
;
}
}
else
{
int
cgroup_fd
;
int
cgroup_fd
=
-
EBADF
;
struct
lxc_clone_args
clone_args
=
{
.
flags
=
handler
->
clone_flags
,
...
...
src/lxc/start.h
View file @
7c8b10e5
...
...
@@ -3,6 +3,8 @@
#ifndef __LXC_START_H
#define __LXC_START_H
#include <linux/sched.h>
#include <sched.h>
#include <signal.h>
#include <stdbool.h>
#include <sys/param.h>
...
...
@@ -37,7 +39,7 @@ struct lxc_handler {
unsigned
int
ns_clone_flags
;
unsigned
int
ns_on_clone_flags
;
unsigned
int
ns_unshare_flags
;
unsigned
int
clone_flags
;
__aligned_u64
clone_flags
;
};
/* File descriptor to pin the rootfs for privileged containers. */
...
...
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