FYI: general guide to chrooting
Chrooting something is - depending on the process you want to chroot - a basic up to advanced road. The steps require to chroot something involve:[list=1][*]create a seperate directory tree (empty)[*]copy the binary and the required libraries (you've used ldd to find those out) in the appropiate directory.[*]run the process non-chrooted and check the files it accesses (data files, devices, etc). use lsof and strace as your tools.[*]create the neccesary devices, data files[*]adjust configuration to reflect the chroot[*]attempt to run the process chrooted[*]put as strict as possible permissions on the chroot[*]modify startup scripts[*]test if all the required functionality of the proccess still works.[*]use aide to check the chroot once a day[/list=1]This is a pretty general and not really explained way. I want your comments on that basic part. I will advance this guide with more explanaitions as time passes by.
Later I will provide a example - MySQL 4.0.13 which is fairly easy to chroot IMHO!
Last edited by markus1982; 06-17-2003 at 05:21 AM.
|