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
f8c40ffa
Unverified
Commit
f8c40ffa
authored
Feb 07, 2018
by
LiFeng
Committed by
Christian Brauner
Feb 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgfsng: do MS_REMOUNT
Perform MS_REMOUNT on mounts with MS_RDONLY. Signed-off-by:
LiFeng
<
lifeng68@huawei.com
>
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
3fb8253d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
cgfsng.c
src/lxc/cgroups/cgfsng.c
+9
-0
No files found.
src/lxc/cgroups/cgfsng.c
View file @
f8c40ffa
...
...
@@ -1947,6 +1947,15 @@ static int do_secondstage_mounts_if_needed(int type, struct hierarchy *h,
cgpath
);
return
-
1
;
}
if
(
flags
&
MS_RDONLY
)
{
if
(
mount
(
sourcepath
,
cgpath
,
"cgroup"
,
MS_REMOUNT
|
flags
|
MS_RDONLY
,
NULL
)
<
0
)
{
free
(
sourcepath
);
SYSERROR
(
"Error remounting %s read-only"
,
cgpath
);
return
-
1
;
}
}
free
(
sourcepath
);
INFO
(
"Completed second stage cgroup automounts for %s"
,
cgpath
);
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