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
ed186661
Unverified
Commit
ed186661
authored
Nov 10, 2017
by
Serge Hallyn
Committed by
GitHub
Nov 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1907 from brauner/2017-11-08/cgfsng
cgroups/cgfsng: adapt to new cgroup2 delegation
parents
94b308f7
0e17357c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
cgfsng.c
src/lxc/cgroups/cgfsng.c
+19
-0
No files found.
src/lxc/cgroups/cgfsng.c
View file @
ed186661
...
...
@@ -1503,6 +1503,25 @@ static int chown_cgroup_wrapper(void *data)
if
(
chmod
(
fullpath
,
0664
)
<
0
)
WARN
(
"Error chmoding %s: %s"
,
path
,
strerror
(
errno
));
free
(
fullpath
);
if
(
!
hierarchies
[
i
]
->
is_cgroup_v2
)
continue
;
fullpath
=
must_make_path
(
path
,
"cgroup.subtree_control"
,
NULL
);
if
(
chown
(
fullpath
,
destuid
,
0
)
<
0
&&
errno
!=
ENOENT
)
WARN
(
"Failed chowning %s to %d: %s"
,
fullpath
,
(
int
)
destuid
,
strerror
(
errno
));
if
(
chmod
(
fullpath
,
0664
)
<
0
)
WARN
(
"Error chmoding %s: %s"
,
path
,
strerror
(
errno
));
free
(
fullpath
);
fullpath
=
must_make_path
(
path
,
"cgroup.threads"
,
NULL
);
if
(
chown
(
fullpath
,
destuid
,
0
)
<
0
&&
errno
!=
ENOENT
)
WARN
(
"Failed chowning %s to %d: %s"
,
fullpath
,
(
int
)
destuid
,
strerror
(
errno
));
if
(
chmod
(
fullpath
,
0664
)
<
0
)
WARN
(
"Error chmoding %s: %s"
,
path
,
strerror
(
errno
));
free
(
fullpath
);
}
return
0
;
...
...
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