RPM Community Forums

Mailing List Message of <rpm-devel>

Re: chroot(2) <-> db-4.6.19 problems

From: Jeff Johnson <n3npq@mac.com>
Date: Mon 24 Sep 2007 - 18:03:07 CEST
Message-Id: <148E1DD4-DB45-4E0F-9EAF-9988702086C2@mac.com>

On Sep 24, 2007, at 11:05 AM, Mark Hatle wrote:
> I can write up some basic instructions in a couple of week (when I get
> back from business trips) if anyone is interested.  While I'd prefer  
> to
> be able to do some of this right inside of RPM, this was the only  
> way I
> could think of to deal w/ special files and lua scripts.

Stripping chroot prefixes for db-4.6.18 cached file paths is now done
internally to rpm. The mechanism is more general than the db-4.6.18  

The implementation problem is quite hard however. All syscall's that
use file paths (that might be cached) need to be made context sensitive
(i.e. are we in the chroot or not?) either by stealing the open call  
LD_PRELOAD etc a la fakeroot, or by populating an (*open) vector
a la bdb, or by actually modifying code, like lua, to use replacement
syscall wrappers.

None of the solutions in the previous paragraph are particularly pretty
implementations. Works, but ...

73 de Jeff

  • application/pkcs7-signature attachment: smime.p7s
Received on Mon Sep 24 18:03:48 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.