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
4a5911e8
Commit
4a5911e8
authored
Jul 29, 2015
by
Przemek Rudy
Committed by
Stéphane Graber
Aug 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent from error on umount /proc if userns are used.
Signed-off-by:
Przemek Rudy
<
prudy1@o2.pl
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
5035cbc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
conf.c
src/lxc/conf.c
+2
-4
No files found.
src/lxc/conf.c
View file @
4a5911e8
...
@@ -1368,10 +1368,8 @@ int prepare_ramfs_root(char *root)
...
@@ -1368,10 +1368,8 @@ int prepare_ramfs_root(char *root)
break
;
break
;
}
}
if
(
umount2
(
"./proc"
,
MNT_DETACH
))
{
/* This also can be skipped if a container uses unserns */
SYSERROR
(
"Unable to umount /proc"
);
umount2
(
"./proc"
,
MNT_DETACH
);
return
-
1
;
}
/* It is weird, but chdir("..") moves us in a new root */
/* It is weird, but chdir("..") moves us in a new root */
if
(
chdir
(
".."
)
==
-
1
)
{
if
(
chdir
(
".."
)
==
-
1
)
{
...
...
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