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
e80ca772
Commit
e80ca772
authored
Feb 24, 2016
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #846 from hallyn/2016-02-24/cgns.auto
cgfs: do not automount if cgroup namespaces are supported
parents
4f97fce4
4608594e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
lxc.container.conf.sgml.in
doc/lxc.container.conf.sgml.in
+7
-1
cgfs.c
src/lxc/cgfs.c
+3
-0
No files found.
doc/lxc.container.conf.sgml.in
View file @
e80ca772
...
...
@@ -912,7 +912,7 @@ proc proc proc nodev,noexec,nosuid 0 0
the container's own cgroup into that directory.
The container will be able to write to its own
cgroup directory, but not the parents, since they
will be remounted read-only
will be remounted read-only
.
</para>
</listitem>
<listitem>
...
...
@@ -987,6 +987,12 @@ proc proc proc nodev,noexec,nosuid 0 0
</listitem>
</itemizedlist>
<para>
If cgroup namespaces are enabled, then any <option>cgroup</option>
auto-mounting request will be ignored, since the container can
mount the filesystems itself, and automounting can confuse the
container init.
</para>
<para>
Note that if automatic mounting of the cgroup filesystem
is enabled, the tmpfs under
<filename>/sys/fs/cgroup</filename> will always be
...
...
src/lxc/cgfs.c
View file @
e80ca772
...
...
@@ -1356,6 +1356,9 @@ static bool cgroupfs_mount_cgroup(void *hdata, const char *root, int type)
struct
cgroup_process_info
*
info
,
*
base_info
;
int
r
,
saved_errno
=
0
;
if
(
cgns_supported
())
return
true
;
cgfs_d
=
hdata
;
if
(
!
cgfs_d
)
return
false
;
...
...
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