Unverified Commit 05af17d7 by Stéphane Graber Committed by GitHub

Merge pull request #3507 from brauner/2020-08-06/fixes

seccomp: don't close the mainloop, simply remove the handler
parents c6018400 eb551cef
...@@ -1374,8 +1374,11 @@ int seccomp_notify_handler(int fd, uint32_t events, void *data, ...@@ -1374,8 +1374,11 @@ 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) if (events & EPOLLHUP) {
return log_trace(LXC_MAINLOOP_CLOSE, "Syscall supervisee already exited"); lxc_mainloop_del_handler(descr, fd);
close(fd);
return log_trace(0, "Removing seccomp notifier fd %d", fd);
}
memset(req, 0, sizeof(*req)); memset(req, 0, sizeof(*req));
ret = seccomp_notify_receive(fd, req); ret = seccomp_notify_receive(fd, req);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment