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
2d533d7a
Commit
2d533d7a
authored
Jun 23, 2015
by
David Ward
Committed by
Stéphane Graber
Aug 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix verification of start hook without a rootfs
Signed-off-by:
David Ward
<
david.ward@ll.mit.edu
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
9a2e239d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
conf.c
src/lxc/conf.c
+3
-3
No files found.
src/lxc/conf.c
View file @
2d533d7a
...
...
@@ -3627,12 +3627,12 @@ static bool verify_start_hooks(struct lxc_conf *conf)
int
ret
;
ret
=
snprintf
(
path
,
MAXPATHLEN
,
"%s%s"
,
conf
->
rootfs
.
mount
,
hookname
);
conf
->
rootfs
.
path
?
conf
->
rootfs
.
mount
:
""
,
hookname
);
if
(
ret
<
0
||
ret
>=
MAXPATHLEN
)
return
false
;
ret
=
stat
(
path
,
&
st
);
if
(
ret
)
{
SYSERROR
(
"Start hook %s not found in container
rootfs
"
,
SYSERROR
(
"Start hook %s not found in container"
,
hookname
);
return
false
;
}
...
...
@@ -3732,7 +3732,7 @@ int lxc_setup(struct lxc_handler *handler)
return
-
1
;
}
/* Make sure any start hooks are in the
rootfs
*/
/* Make sure any start hooks are in the
container
*/
if
(
!
verify_start_hooks
(
lxc_conf
))
return
-
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