[CRIU] Cannot restore from regular user when RPC service running as root

Jason L. Turner jlturner at mdacorporation.com
Fri Jan 16 12:33:08 PST 2015


Hi Ruslan,

That's no problem, hopefully my answers can help.

Yes that restore log is the original from when I ran my program.

I built CRIU from source, it is not from a package.

When running "which criu" it shows,

	"/opt/CRIU-v1-4/criu/deps/criu-x86_64/criu"

When running "ls -la $(which criu)" it shows,

	"-rwxrwxr-x 1 jturner dev 904201 2015-01-18 09:09 /opt/CRIU-v1-4/criu/deps/criu-x86_64/criu"

I am sure that the service was started with the correct criu as the "which criu" command returns the same when run from the root user as well as my linking as it links to the lib directory in the path shown above.

Jason

-----Original Message-----
From: Ruslan Kuprieiev [mailto:kupruser at gmail.com] 
Sent: Friday, January 16, 2015 12:43 PM
To: Jason L. Turner
Cc: criu at openvz.org
Subject: Re: [CRIU] Cannot restore from regular user when RPC service running as root

Are you sure that restore.log is the original one?

How did you install criu? From package or from source?

What does "which criu" and "ls -la $(which criu)" show?

Are you sure, that you have only one instance of criu installed?

Are you sure, that "which criu" is the one that service was started with and the one which libcriu.so you are using when linking?

I'm asking all that questions because criu_restore_child() works in a special way, exec()-ing criu with special "swrk"
option.

Thanks,
Ruslan

On 01/16/2015 06:12 PM, Jason L. Turner wrote:
> Hi Ruslan,
>
> Thanks for confirming =]
>
> Please find my criu-service.log below:
>
> (00.000085) The service socket is bound to 
> /var/run/criu_service.socket
> (00.000134) Waiting for connection...
> (20.491721) Connected.
> (20.491876) Waiting for connection...
> (20.492207) Restrict C/R with 1000:100 uid:gid
> (20.500247) Worker(pid 16800) exited with 0




More information about the CRIU mailing list