#12602: find_paths does not work inside chroot.
--------------------------------+----------------------------
Reporter: pulkomandy | Owner: bonefish
Type: bug | Status: new
Priority: high | Milestone: R1/beta1
Component: Kits/Storage Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
--------------------------------+----------------------------
Comment (by pulkomandy):
Investigation progress:
findpaths -r needs to first find the requested package. It does so by
querying the package roster for all installed packages. This is
implemented through {{{BDaemonClient::GetInstallationLocationInfo}}},
which asks the package daemon.
The problem is, the package daemon lives outside the chroot and has no
idea about it. So, it will return the main system packages directories
instead of the ones in the chroot. Moreover, it returns a device+node
pair, which the package kit can use to "escape" the chroot and list
packages outside of it. So we end up with the list of packages from the
system, which is the cause for the bug here and also a security problem.
--
Ticket URL: <https://dev.haiku-os.org/ticket/12602#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.