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
b3d528ef
Unverified
Commit
b3d528ef
authored
Mar 20, 2020
by
Stéphane Graber
Committed by
GitHub
Mar 20, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3314 from brauner/2020-03-20/fixes
start: move reading seccomp profile after pre-start hook
parents
00ae4f27
2e1361a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
start.c
src/lxc/start.c
+5
-5
No files found.
src/lxc/start.c
View file @
b3d528ef
...
...
@@ -737,11 +737,6 @@ int lxc_init(const char *name, struct lxc_handler *handler)
lsm_init
();
TRACE
(
"Initialized LSM"
);
ret
=
lxc_read_seccomp_config
(
conf
);
if
(
ret
<
0
)
return
log_error
(
-
1
,
"Failed loading seccomp policy"
);
TRACE
(
"Read seccomp policy"
);
/* Begin by setting the state to STARTING. */
ret
=
lxc_set_state
(
name
,
handler
,
STARTING
);
if
(
ret
<
0
)
...
...
@@ -840,6 +835,11 @@ int lxc_init(const char *name, struct lxc_handler *handler)
}
TRACE
(
"Initialized cgroup driver"
);
ret
=
lxc_read_seccomp_config
(
conf
);
if
(
ret
<
0
)
return
log_error
(
-
1
,
"Failed loading seccomp policy"
);
TRACE
(
"Read seccomp policy"
);
ret
=
lsm_process_prepare
(
conf
,
handler
->
lxcpath
);
if
(
ret
<
0
)
{
ERROR
(
"Failed to initialize LSM"
);
...
...
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