jailkit-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] ldd on FreeBSD


From: Peter Veerman
Subject: Re: [Jailkit-users] ldd on FreeBSD
Date: Fri, 03 Nov 2006 11:04:52 +0100
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Well,

I couldn't find an answer to that question either, though we have a runtime linker:

http://www.gsp.com/cgi-bin/man.cgi?section=1&topic=ld-elf.so.1

If i understood the manpage correctly:

The only problem of not running the ldconfig -r command in a freebsd chroot is that the the ld.so.hints file in the chrooted environment contains references to files that are not in the chrooted environment. But if the chroot contains all the libraries the executables need, there's not a real problem IMHO. Though it is not very nice....

Peter Veerman





Olivier Sessink wrote:
Peter Veerman wrote:

  
Well in freebsd we have an ldconfig that configures the shared library
cache. When i empty this cache no dynamic loadable libraries can be
found by the executable ---> the executables won't run 8-)

The manpage of LDCONFIG.
http://www.gsp.com/cgi-bin/man.cgi?section=8&topic=ldconfig

The manpage of LD.
http://www.gsp.com/cgi-bin/man.cgi?section=1&topic=ld

If this doesn't help you out please let me know.
    

hmm on Linux ldconfig has the option -r to create a library cache in a
chroot environment
http://www.die.net/doc/linux/man/man8/ldconfig.8.html

not sure how this can be done on freebsd.. Do you copy the ldconfig
binary into the chroot jail and then run it with
`chroot /path ldconfig` ?

gr.
	Olivier


_______________________________________________
Jailkit-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/jailkit-users
  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]