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
4cd3a764
Unverified
Commit
4cd3a764
authored
Feb 21, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: move cgroup2 parameters into substruct
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
b1b1a60f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
cgroup.h
src/lxc/cgroups/cgroup.h
+13
-10
No files found.
src/lxc/cgroups/cgroup.h
View file @
4cd3a764
...
@@ -77,18 +77,8 @@ typedef enum {
...
@@ -77,18 +77,8 @@ typedef enum {
* CGROUP2_SUPER_MAGIC.
* CGROUP2_SUPER_MAGIC.
*/
*/
struct
hierarchy
{
struct
hierarchy
{
/*
* cgroup2 only: what files need to be chowned to delegate a cgroup to
* an unprivileged user.
*/
char
**
cgroup2_chown
;
char
**
controllers
;
cgroupfs_type_magic_t
fs_type
;
cgroupfs_type_magic_t
fs_type
;
/* cgroup2 only */
unsigned
int
bpf_device_controller
:
1
;
unsigned
int
freezer_controller
:
1
;
/* File descriptor for the container's cgroup @path_con. */
/* File descriptor for the container's cgroup @path_con. */
int
dfd_con
;
int
dfd_con
;
char
*
path_con
;
char
*
path_con
;
...
@@ -111,6 +101,19 @@ struct hierarchy {
...
@@ -111,6 +101,19 @@ struct hierarchy {
/* File descriptor for the controller's base cgroup path @at_base. */
/* File descriptor for the controller's base cgroup path @at_base. */
int
dfd_base
;
int
dfd_base
;
char
*
at_base
;
char
*
at_base
;
struct
/* unified hierarchy specific */
{
/*
* cgroup2 only: what files need to be chowned to delegate a
* cgroup to an unprivileged user.
*/
char
**
cgroup2_chown
;
/* cgroup2 only */
unsigned
int
bpf_device_controller
:
1
;
unsigned
int
freezer_controller
:
1
;
};
char
**
controllers
;
};
};
struct
cgroup_ops
{
struct
cgroup_ops
{
...
...
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