mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 01:52:34 +00:00
Merge pull request #3499 from brauner/2020-07-27/seccomp_notify_cleanup
seccomp: remove seccomp fd from event loop after task exited
This commit is contained in:
commit
64cbd48aa3
@ -1373,6 +1373,9 @@ 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 (events & EPOLLHUP)
|
||||||
|
return log_trace(LXC_MAINLOOP_CLOSE, "Syscall supervisee already exited");
|
||||||
|
|
||||||
memset(req, 0, sizeof(*req));
|
memset(req, 0, sizeof(*req));
|
||||||
ret = seccomp_notify_receive(fd, req);
|
ret = seccomp_notify_receive(fd, req);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
Loading…
Reference in New Issue
Block a user