Linux Container Development
 help / color / mirror / Atom feed
* [RFC] checkpoint/restart of PTYs
@ 2009-08-19  0:42 Oren Laadan
       [not found] ` <1250642549-23656-1-git-send-email-orenl-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Oren Laadan @ 2009-08-19  0:42 UTC (permalink / raw)
  To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

This short series adds support for checkpoint and restart of PTYs. It
is mildly tested on top of ckpt-v17-dev (with test/pty from user-cr).

I'm not an expert on PTYs, TTYs, line disciplines and the like,
comments are mostly welcome:

* Only handles PTYs related to open files (no signal->...)

* What (additional) values we need to sanitize on restart ?

* What additional locking should be in place ? (especially checkpoint)

* Need to save/restore echo buffer (and position) ?

* /dev/ptmx and /dev/pts/... paths are currently hardcoded

* For restart without restoring PIDs, need to ensure the session and
  pgrp are either -1 (none) or limited to a PID value that belongs to
  the restarted subtree.

* For restart with restoring PIDs, need to create on-the-fly session
  and/or pgrp PIDs that do not exist (e.g. of a dead process). This is
  also necessary to correctly restore pgrp, regardless of PTYs.

* Other security concerns ? ...

* and probably more :p

Oren.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-09-03  4:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-19  0:42 [RFC] checkpoint/restart of PTYs Oren Laadan
     [not found] ` <1250642549-23656-1-git-send-email-orenl-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-08-19  0:42   ` [RFC][PATCH 1/3] c/r: [objhash] add ckpt_obj_reserve() Oren Laadan
2009-08-19  0:42   ` [RFC][PATCH 2/3] c/r: [pty 1/2] allow allocation of desired pty slave Oren Laadan
     [not found]     ` <1250642549-23656-3-git-send-email-orenl-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-08-25 14:58       ` Serge E. Hallyn
     [not found]         ` <20090825145817.GA22351-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-08-25 18:28           ` Oren Laadan
2009-08-19  0:42   ` [RFC][PATCH 3/3] c/r: [pty 2/2] support for pseudo terminals Oren Laadan
     [not found]     ` <1250642549-23656-4-git-send-email-orenl-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-09-02 14:48       ` Serge E. Hallyn
     [not found]         ` <20090902144837.GA15116-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-09-02 22:54           ` Oren Laadan
     [not found]             ` <4A9EF7A9.4060507-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-09-02 23:05               ` Serge E. Hallyn
     [not found]                 ` <20090902230549.GB26324-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-09-02 23:43                   ` Oren Laadan
     [not found]                     ` <4A9F0323.2090000-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-09-03  4:41                       ` Serge E. Hallyn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox