[CRIU] [PATCH 3/4] files: add support of O_PATH
Pavel Emelyanov
xemul at parallels.com
Wed Apr 9 02:26:00 PDT 2014
On 04/07/2014 02:00 PM, Andrey Vagin wrote:
> @@ -96,7 +96,10 @@ int send_fds(int sock, struct sockaddr_un *saddr, int len,
> /*
> * Simple case -- nothing is changed.
> */
> - if (owner_ex.pid == 0) {
> + if (ret == -EBADF) { /* O_PATH */
"ret == EBADFD" means "file opened with O_PATH" doesn't look like good
assumption to me. Can we get file flags from somewhere else?
> + p->fown.pid = -1;
> + continue;
> + } else if (owner_ex.pid == 0) {
> p->fown.pid = 0;
> continue;
> }
>
More information about the CRIU
mailing list