Re: [RFC v7][PATCH 2/9] General infrastructure for checkpoint restart

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Serge E. Hallyn
Date: Wednesday, October 22, 2008 - 8:28 am

Quoting Oren Laadan (orenl@cs.columbia.edu):

Just thinking aloud...

Is read mode appropriate?  The user can edit the statefile and restart
it.  Admittedly the restart code should then do all the appropriate
checks for recreating resources, but I'm having a hard time thinking
through this straight.

Let's say hallyn is running passwd.  ruid=500,euid=0.  He quickly
checkpoints.  Then he restarts.  Will restart say "ok, the /bin/passwd
binary is setuid 0 so let hallyn take euid=0 for this?"  I guess not.
But are there other resources for which this is harder to get right?

...


I think we'll find the ptrace() checks to be so like what we're doing
that no new check will be needed.  But we should definately ask them.

Now may be too early to ask, though.  The answer will be clearer once
more resources are supported.
 

Except we support nested containers, so unless we only support
checkpoint of the deepest container, that doesn't work.

...


Hmm, so do you think we just always use the caller's credentials?

If we were to use some sort of tpm-signing of statefiles, then
hallyn restarting a checkpointed /bin/passwd may become doable.


Cool, thanks Oren.

-serge
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC v7][PATCH 0/9] Kernel based checkpoint/restart, Oren Laadan, (Sun Oct 19, 10:40 pm)
[RFC v7][PATCH 3/9] x86 support for checkpoint/restart, Oren Laadan, (Sun Oct 19, 10:40 pm)
[RFC v7][PATCH 4/9] Dump memory address space, Oren Laadan, (Sun Oct 19, 10:40 pm)
[RFC v7][PATCH 5/9] Restore memory address space, Oren Laadan, (Sun Oct 19, 10:40 pm)
[RFC v7][PATCH 7/9] Infrastructure for shared objects, Oren Laadan, (Sun Oct 19, 10:40 pm)
[RFC v7][PATCH 8/9] Dump open file descriptors, Oren Laadan, (Sun Oct 19, 10:40 pm)
[RFC v7][PATCH 9/9] Restore open file descriprtors, Oren Laadan, (Sun Oct 19, 10:40 pm)
Re: [RFC v7][PATCH 0/9] Kernel based checkpoint/restart, Andrew Morton, (Tue Oct 21, 12:21 pm)
Re: [RFC v7][PATCH 2/9] General infrastructure for checkpo ..., Daniel Jacobowitz, (Tue Oct 21, 7:55 pm)
Re: [RFC v7][PATCH 0/9] Kernel based checkpoint/restart, Daniel Lezcano, (Wed Oct 22, 4:51 am)
Re: [RFC v7][PATCH 2/9] General infrastructure for checkpo ..., Daniel Jacobowitz, (Wed Oct 22, 7:29 am)
Re: [RFC v7][PATCH 2/9] General infrastructure for checkpo ..., Serge E. Hallyn, (Wed Oct 22, 8:28 am)