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
9e21bb6f
Unverified
Commit
9e21bb6f
authored
Apr 23, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dir: fix rootfs mounting
We need to be able to lookup symlinks and allow xdev. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
6ecffe66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dir.c
src/lxc/storage/dir.c
+2
-2
No files found.
src/lxc/storage/dir.c
View file @
9e21bb6f
...
...
@@ -151,11 +151,11 @@ int dir_mount(struct lxc_storage *bdev)
if
(
can_use_bind_mounts
())
{
__do_close
int
fd_source
=
-
EBADF
,
fd_target
=
-
EBADF
;
fd_source
=
open_at
(
-
EBADF
,
src
,
PROTECT_OPATH_DIRECTORY
,
PROTECT_LOOKUP_ABSOLUTE
,
0
);
fd_source
=
open_at
(
-
EBADF
,
src
,
PROTECT_OPATH_DIRECTORY
,
0
,
0
);
if
(
fd_source
<
0
)
return
syserror
(
"Failed to open
\"
%s
\"
"
,
src
);
fd_target
=
open_at
(
-
EBADF
,
bdev
->
dest
,
PROTECT_OPATH_DIRECTORY
,
PROTECT_LOOKUP_ABSOLUTE
,
0
);
fd_target
=
open_at
(
-
EBADF
,
bdev
->
dest
,
PROTECT_OPATH_DIRECTORY
,
0
,
0
);
if
(
fd_target
<
0
)
return
syserror
(
"Failed to open
\"
%s
\"
"
,
bdev
->
dest
);
...
...
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