mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* How to duplicate arbitrary process via an LKM
@ 2013-09-19 14:26 Curtis Taylor
  0 siblings, 0 replies; only message in thread
From: Curtis Taylor @ 2013-09-19 14:26 UTC (permalink / raw)
  To: linux-kernel

Hello all,

I'm wondering if it's possible to create an LKM that can take an arbitrary
process, removes it from the run queue, duplicates it, and re-runs it with
it's new PID. I would like to see the functionality of a simple user space
fork() but I don't want to edit the application's source code.

I'm new to writing kernel code and after looking at a kernel dev book, it
looks like the system calls clone or do_fork would be what I would leverage
for this. The problem is that clone expects some user space data data in
order to work, but maybe it's possible I could look at the task struct and
figure out everything I need?

Please 'cc' me with responses as I'm not on the mailing list.

Thanks in advance!



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-19 14:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-19 14:26 How to duplicate arbitrary process via an LKM Curtis Taylor

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

all inboxes | Powered by JetHome®