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: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Kirill Tkhai 2018-01-30 18:41:10 +03:00 committed by Andrei Vagin
parent 7d1eeee729
commit 8377abeb1f

View file

@ -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;
}