]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/coredump/coredump.c
coredump: save process container parent cmdline 3858/head
authorJakub Filak <jfilak@redhat.com>
Wed, 27 Apr 2016 13:23:49 +0000 (15:23 +0200)
committerJakub Filak <jfilak@redhat.com>
Tue, 2 Aug 2016 14:01:18 +0000 (16:01 +0200)
commit7ed03ce69ede34b03107702efd6efb100e9a23bc
tree104859f8c2d18e3ec2d5cd32b42c643b8249a6f3
parentd7032b1fcd6e51b736698a8b264273c625084643
coredump: save process container parent cmdline

Process container parent is the process used to start processes with a new
user namespace - e.g systemd-nspawn, runc, lxc, etc.

There is not standard way how to find such a process - or I do not know
about it - hence I have decided to find the first process in the parent
process hierarchy with a different mount namespace and different
/proc/self/root's inode.

I have decided for this criteria because in ABRT we take special care
only if the crashed process runs different code than installed on the
host. Other processes with namespaces different than PID 1's namespaces
are just processes running code shipped by the OS vendor and bug
reporting tools can get information about the provider of the code
without the need to deal with changed root and so on.
src/coredump/coredump.c