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:
Stéphane Graber 2020-07-27 08:16:30 -04:00 committed by GitHub
commit 64cbd48aa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1373,6 +1373,9 @@ int seccomp_notify_handler(int fd, uint32_t events, void *data,
char *cookie = conf->seccomp.notifier.cookie;
uint64_t req_id;
if (events & EPOLLHUP)
return log_trace(LXC_MAINLOOP_CLOSE, "Syscall supervisee already exited");
memset(req, 0, sizeof(*req));
ret = seccomp_notify_receive(fd, req);
if (ret) {