Fedora Toolbox Support
Now toolboxes are becoming a thing, especially in Silverblue, we need to be able to decode symbols from processes running in those toolboxes.
We already have support on master to find the current users container storage in .local/share/containers/storage/overlay/diff
, but we need to be able to detect when to translate paths for a given process. For example, when we find flatpak applications, we translate their root path from /usr/lib/...
to be rooted via the closest mount in /proc/$pid/mountinfo
. We need to do the same for toolbox except that we hit a non-translatable mount via fuse-overlayfs
.
So in this case, we need to detect the process is in podman and do a bit of a workaround. It looks like newer podman will have a certain slice associated with it in /proc/$pid/cgroups
that we can possibly decode.