[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110616162220.GB3189@redhat.com>
Date: Thu, 16 Jun 2011 18:22:20 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: "Eric W. Biederman" <ebiederm@...ssion.com>
Cc: Cedric Le Goater <clg@...ibm.com>, Greg Kurz <gkurz@...ibm.com>,
linux-kernel@...r.kernel.org, containers@...ts.osdl.org,
akpm@...ux-foundation.org, xemul@...nvz.org
Subject: Re: [PATCH] Introduce ActivePid: in /proc/self/status (v2, was
Vpid:)
On 06/16, Eric W. Biederman wrote:
>
> I remember there were a few very weird things with pids when ptracing
> a process in another pid namespace.
The only problems is pids. PTRACE_EVENT_FORK/etc reports the global pid.
This is fixable. Some tracers look at syscall_get_return_value() register
and get the "local" pid which they do not want.
> It may be that ActivePid is enough
> to allow the tracer to figure out the confusing information it is
> getting.
I don't think so. ActivePid doesn't help unless you know all pids in
this container.
> I would be surprised if using ptrace to send signals is how you
> want to do things.
Yes, yes, this is hack.
Oleg.
--
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