[PATCH][RFC] fs/exec.c: provide the correct process pid to the pipe helper

Roland McGrath roland at redhat.com
Fri Sep 17 12:08:00 PDT 2010

> That said I don't think this is a complete fix.  We also potentially
> have the same issue with the uts namespace and the user namespace.


> I believe the core file holds all of this information relative to the
> process that is dying, one elf note or other so we don't need to worry
> about information loss.

That's correct (see linux/elfcore.h, pr_*id fields in prstatus and prpsinfo).

> I can imagine that it would be nice to have different core patterns
> depending on where you are in the process tree, so a container can
> do something different than the system outside of the container.  Are
> you thinking along those lines, or are you imagining something else?

I agree.  The format string being part of the pid_ns makes sense to me.  
(I don't have any ideas about the interface for setting it.)
Of course, then what would make most sense is for the pipe handler to
run in the innermost namespace that set its own format, rather than in
the global ns.


More information about the Containers mailing list