Commit 8377abeb authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Andrei Vagin

files: Allow epolls sent over unix socket

Since epoll restore is split in two parts,
epoll_create() does not depend on another
files state. Since epoll is created, it
can be sent to everywhere. So, there is
no circular dependences, and we allow epolls
sent over unix socket.
Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 7d1eeee7
......@@ -102,11 +102,10 @@ static int dump_scm_rights(struct cmsghdr *ch, SkPacketEntry *pe)
return -1;
/*
* Unix sent over Unix or Epoll with some other sh*t
* sent over unix (maybe with this very unix polled)
* are tricky and not supported for now. (XXX -- todo)
* Unix sent over Unix are tricky and not supported
* for now. (XXX -- todo).
*/
if (ftyp == FD_TYPES__UNIXSK || ftyp == FD_TYPES__EVENTPOLL) {
if (ftyp == FD_TYPES__UNIXSK) {
pr_err("Can't dump send %d (unix/epoll) fd\n", ftyp);
return -1;
}
......
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