linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ptrace: add ability to attach a file descriptor to another process
@ 2011-12-16 10:46 Andrew Vagin
  2011-12-16 10:46 ` [PATCH 1/2] fs: add ability to attach and to allocate fd for non current tasks Andrew Vagin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andrew Vagin @ 2011-12-16 10:46 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-fsdevel, Alexander Viro, Roland McGrath, Oleg Nesterov,
	Steven Rostedt, Cyrill Gorcunov, Pavel Emelyanov, Tejun Heo

We need this functionality for checkpointing processes.  Now some parts
are dumped with help PTRACE_SEIZE.  Parasite code is injected to process
and it collects information.  This code should save data to somewhere.
I want to suggest a scheme, when a dumper creates file descriptor and
attaches it to a target process, then execute parasite code, which closes
this descriptor at the end.

We can't create unix sockets or open files, because a process may
be in another namespaces.

Signed-off-by: Andrew Vagin <avagin@openvz.org>

Andrew Vagin (2):
  fs: add ability attaching and allocating fd for non current tasks
  ptrace: add ability to attach a file descriptor to another process

 fs/file.c              |    9 +++++++--
 fs/open.c              |    9 +++++++--
 include/linux/file.h   |    4 ++++
 include/linux/ptrace.h |    1 +
 kernel/ptrace.c        |   27 +++++++++++++++++++++++++++
 5 files changed, 46 insertions(+), 4 deletions(-)


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

end of thread, other threads:[~2011-12-18 18:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-16 10:46 [PATCH 0/2] ptrace: add ability to attach a file descriptor to another process Andrew Vagin
2011-12-16 10:46 ` [PATCH 1/2] fs: add ability to attach and to allocate fd for non current tasks Andrew Vagin
2011-12-16 10:46 ` [PATCH 2/2] ptrace: add ability to attach a file descriptor to another task Andrew Vagin
2011-12-18 18:17   ` Oleg Nesterov
2011-12-16 16:05 ` [PATCH 0/2] ptrace: add ability to attach a file descriptor to another process Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).