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
usage
case.
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
with
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