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
5357b872
Commit
5357b872
authored
Jul 05, 2019
by
Wolfgang Bumiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seccomp: don't ignore syscalls when there's no proxy
The container process would just hang. Signed-off-by:
Wolfgang Bumiller
<
w.bumiller@proxmox.com
>
parent
8a99ab01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
seccomp.c
src/lxc/seccomp.c
+5
-5
No files found.
src/lxc/seccomp.c
View file @
5357b872
...
@@ -1366,17 +1366,17 @@ int seccomp_notify_handler(int fd, uint32_t events, void *data,
...
@@ -1366,17 +1366,17 @@ int seccomp_notify_handler(int fd, uint32_t events, void *data,
char
*
cookie
=
conf
->
seccomp
.
notifier
.
cookie
;
char
*
cookie
=
conf
->
seccomp
.
notifier
.
cookie
;
uint64_t
req_id
;
uint64_t
req_id
;
if
(
listener_proxy_fd
<
0
)
{
ERROR
(
"No seccomp proxy registered"
);
return
minus_one_set_errno
(
EINVAL
);
}
ret
=
seccomp_notify_receive
(
fd
,
req
);
ret
=
seccomp_notify_receive
(
fd
,
req
);
if
(
ret
)
{
if
(
ret
)
{
SYSERROR
(
"Failed to read seccomp notification"
);
SYSERROR
(
"Failed to read seccomp notification"
);
goto
out
;
goto
out
;
}
}
if
(
listener_proxy_fd
<
0
)
{
ERROR
(
"No seccomp proxy registered"
);
return
minus_one_set_errno
(
EINVAL
);
}
/* remember the ID in case we receive garbage from the proxy */
/* remember the ID in case we receive garbage from the proxy */
resp
->
id
=
req_id
=
req
->
id
;
resp
->
id
=
req_id
=
req
->
id
;
...
...
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