[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1324032383-791758-1-git-send-email-avagin@openvz.org>
Date: Fri, 16 Dec 2011 13:46:21 +0300
From: Andrew Vagin <avagin@...nvz.org>
To: linux-kernel@...r.kernel.org
Cc: linux-fsdevel@...r.kernel.org,
Alexander Viro <viro@...iv.linux.org.uk>,
Roland McGrath <roland@...hat.com>,
Oleg Nesterov <oleg@...hat.com>,
Steven Rostedt <rostedt@...dmis.org>,
Cyrill Gorcunov <gorcunov@...nvz.org>,
Pavel Emelyanov <xemul@...allels.com>,
Tejun Heo <tj@...nel.org>
Subject: [PATCH 0/2] ptrace: add ability to attach a file descriptor to another process
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@...nvz.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(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists