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
5dc90afd
Unverified
Commit
5dc90afd
authored
Feb 23, 2021
by
Stéphane Graber
Committed by
GitHub
Feb 23, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3692 from brauner/2021-02-23/fixes
build fix & cgroup braino
parents
162402cc
6ee13f5b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
attach.c
src/lxc/attach.c
+7
-0
cgfsng.c
src/lxc/cgroups/cgfsng.c
+1
-1
commands.h
src/lxc/commands.h
+1
-2
No files found.
src/lxc/attach.c
View file @
5dc90afd
...
@@ -1657,6 +1657,13 @@ int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function,
...
@@ -1657,6 +1657,13 @@ int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function,
TRACE
(
"Moved transient process %d into container cgroup"
,
pid
);
TRACE
(
"Moved transient process %d into container cgroup"
,
pid
);
}
}
/*
* Close sensitive file descriptors we don't need anymore. Even if
* we're the parent.
*/
if
(
!
attach_context_security_barrier
(
ctx
))
goto
on_error
;
/* Setup /proc limits */
/* Setup /proc limits */
if
(
!
lxc_list_empty
(
&
conf
->
procs
))
{
if
(
!
lxc_list_empty
(
&
conf
->
procs
))
{
ret
=
setup_proc_filesystem
(
&
conf
->
procs
,
pid
);
ret
=
setup_proc_filesystem
(
&
conf
->
procs
,
pid
);
...
...
src/lxc/cgroups/cgfsng.c
View file @
5dc90afd
...
@@ -337,7 +337,7 @@ static char **list_add_controllers(char *controllers)
...
@@ -337,7 +337,7 @@ static char **list_add_controllers(char *controllers)
__do_free_string_list
char
**
list
=
NULL
;
__do_free_string_list
char
**
list
=
NULL
;
char
*
it
;
char
*
it
;
lxc_iterate_parts
(
it
,
controllers
,
"
\t\n
"
)
{
lxc_iterate_parts
(
it
,
controllers
,
"
,
\t\n
"
)
{
int
ret
;
int
ret
;
ret
=
list_add_string
(
&
list
,
it
);
ret
=
list_add_string
(
&
list
,
it
);
...
...
src/lxc/commands.h
View file @
5dc90afd
...
@@ -127,8 +127,7 @@ __hidden extern int lxc_cmd_get_seccomp_notify_fd(const char *name, const char *
...
@@ -127,8 +127,7 @@ __hidden extern int lxc_cmd_get_seccomp_notify_fd(const char *name, const char *
__hidden
extern
int
lxc_cmd_get_cgroup_ctx
(
const
char
*
name
,
const
char
*
lxcpath
,
__hidden
extern
int
lxc_cmd_get_cgroup_ctx
(
const
char
*
name
,
const
char
*
lxcpath
,
const
char
*
controller
,
bool
batch
,
const
char
*
controller
,
bool
batch
,
size_t
size_ret_ctx
,
size_t
size_ret_ctx
,
struct
cgroup_ctx
*
ret_ctx
)
struct
cgroup_ctx
*
ret_ctx
);
__access_r
(
6
,
5
);
__hidden
extern
int
lxc_cmd_seccomp_notify_add_listener
(
const
char
*
name
,
const
char
*
lxcpath
,
int
fd
,
__hidden
extern
int
lxc_cmd_seccomp_notify_add_listener
(
const
char
*
name
,
const
char
*
lxcpath
,
int
fd
,
/* unused */
unsigned
int
command
,
/* unused */
unsigned
int
command
,
/* unused */
unsigned
int
flags
);
/* unused */
unsigned
int
flags
);
...
...
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