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
7969675f
Unverified
Commit
7969675f
authored
Feb 19, 2019
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: cleanup macros remount_all_slave
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
48411df2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
conf.c
src/lxc/conf.c
+1
-2
No files found.
src/lxc/conf.c
View file @
7969675f
...
@@ -3283,11 +3283,11 @@ void tmp_proc_unmount(struct lxc_conf *lxc_conf)
...
@@ -3283,11 +3283,11 @@ void tmp_proc_unmount(struct lxc_conf *lxc_conf)
/* Walk /proc/mounts and change any shared entries to slave. */
/* Walk /proc/mounts and change any shared entries to slave. */
void
remount_all_slave
(
void
)
void
remount_all_slave
(
void
)
{
{
__do_free
char
*
line
=
NULL
;
int
memfd
,
mntinfo_fd
,
ret
;
int
memfd
,
mntinfo_fd
,
ret
;
ssize_t
copied
;
ssize_t
copied
;
FILE
*
f
;
FILE
*
f
;
size_t
len
=
0
;
size_t
len
=
0
;
char
*
line
=
NULL
;
mntinfo_fd
=
open
(
"/proc/self/mountinfo"
,
O_RDONLY
|
O_CLOEXEC
);
mntinfo_fd
=
open
(
"/proc/self/mountinfo"
,
O_RDONLY
|
O_CLOEXEC
);
if
(
mntinfo_fd
<
0
)
{
if
(
mntinfo_fd
<
0
)
{
...
@@ -3369,7 +3369,6 @@ again:
...
@@ -3369,7 +3369,6 @@ again:
TRACE
(
"Remounted
\"
%s
\"
as MS_SLAVE"
,
target
);
TRACE
(
"Remounted
\"
%s
\"
as MS_SLAVE"
,
target
);
}
}
fclose
(
f
);
fclose
(
f
);
free
(
line
);
TRACE
(
"Remounted all mount table entries as MS_SLAVE"
);
TRACE
(
"Remounted all mount table entries as MS_SLAVE"
);
}
}
...
...
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