# Sample arguments file for use with make_chrootenv # # Call make_chrootenv as follows to use it: # # make_chrootenv -f # # This file contains a list of what's needed and what's not in the # chrooted environment created by make_chrootenv. # First we list needed files and directories; these get copied along # with their contents, recursively. Packages to which these files and # directories, and their contents, belong are also copied over, along # with the contents of those packages and those of their dependencies. # The only exceptions are files/directories matching the !except # patterns below or RPMs matching the !rpm-except patterns below, # further down. # /bin /dev/console /dev/null /dev/random /dev/urandom /dev/zero /etc/hosts /etc/httpd/conf/ca-bundle /etc/httpd/conf/ssl.crt/server.crt /etc/httpd/conf/ssl.key/server.key /etc/nsswitch.conf /etc/resolv.conf /etc/logrotate.d/apache /etc/logrotate.d/httpd /etc/logrotate.d/mysqld /etc/logrotate.d/sendmail /etc/logrotate.d/sshd /etc/logrotate.d/syslog /etc/rc.d/init.d/apache /etc/rc.d/init.d/httpd /etc/rc.d/init.d/mysqld /etc/rc.d/init.d/sshd /etc/sysconfig/network /etc/termcap /root/.cpan/sources /sbin/chkconfig /sbin/consoletype /sbin/initlog /sbin/ldconfig /sbin/pidof /usr/sbin/ldconfig /usr/bin/GET /usr/bin/man /usr/bin/pico /usr/bin/which /usr/bin/xargs /usr/lib/apache /usr/lib/locale/en_US /usr/lib/locale/en_US.utf8 /usr/lib/perl5 /usr/lib/perl5/5.8.0/CPAN/Config.pm /usr/lib/perl5/5.8.3/CPAN/Config.pm /usr/local/sbin/useradd /usr/sbin/chkconfig /usr/sbin/useradd /usr/sbin/vigr /usr/sbin/visudo /usr/sbin/vipw /usr/share/locale/en_US /usr/share/misc/more.help /usr/share/terminfo # File/directory !except pattern !/bin/dumpkeys !/bin/kbd_mode !/bin/loadkeys !/bin/mknod !/bin/mount !/bin/ping !/bin/ping6 !/bin/rpm !/bin/setfont !/bin/setserial !/bin/sfx.* !/bin/su !/bin/umount !/bin/unicode_start !/bin/unicode_stop !/etc/cron\.d/.* # Depending on the setup in the main server's /etc/cron.xxx # files, only scrips in certain /etc/cron.xxx directories below # will get executed (/etc/cron.daily will usually work) !/bin/dnsdomainname !/bin/domainname !/bin/netstat !/bin/nisdomainname !/bin/tracepath6 !/bin/traceroute6 !/bin/ypdomainname !/dev/(?!tty|pty|u?rand|null|console).* !/etc/cron\.hourly/.* !/etc/cron\.daily/(?!logrotate|tmpwatch).* !/etc/cron\.weekly/.* !/etc/cron\.monthly/.* !/etc/cron\.yearly/.* !/etc/logrotate\.d/(?!apache|httpd|mysql|sendmail|ssh|syslog).* !/etc/midi.* !/etc/nscd.* !/etc/odbc/.* !/etc/pam.d/halt !/etc/pam.d/kbdrate !/etc/pam.d/poweroff !/etc/pam.d/reboot !/etc/ppp.* !/etc/printcap !/etc/rc\.d/init\.d/(?!apache|httpd|functions|killall|mysql|ssh).* !/etc/rc\.d/rc.* !/etc/rpm.* !/etc/samba.* !/etc/security/console.apps/.* !/etc/sysc(?!onfig/network).* !/etc/sysconfig/network-scripts/.*isdn !/etc/timidity.* !/etc/xinetd.* !/sbin/arping !/sbin/(?!consoletype|chkconfig|ldconfig|sln|initlog|pidof).* !/sbin/ifdown !/sbin/ifup !/sbin/hwclock !/sbin/hw.* !/usr/X11R6/bin/Xwrapper !/usr/bin/chage !/usr/bin/chfn !/usr/bin/chsh !/usr/bin/consolehelper !/usr/bin/dmesg !/usr/bin/gdm !/usr/bin/neat !/usr/bin/write !/usr/bin/gpasswd !/usr/bin/newgrp !/usr/bin/passwd !/usr/bin/redhat-.* !/usr/bin/strace !/usr/bin/w !/usr/games.* !/usr/include/crack.h !/usr/include/mysql.* !/usr/include/sp.* !/usr/lib/rpm.* !/usr/local/src/.* !/usr/local/sysnet.* !/usr/sbin/arping !/usr/sbin/chroot !/usr/sbin/gdmconfig !/usr/sbin/gdm-.* !/usr/sbin/gnome-pty-helper !/usr/sbin/hw.* !/usr/sbin/kbdrate !/usr/sbin/locale_config !/usr/sbin/locale_.* !/usr/sbin/redhat-.* !/usr/sbin/neat !/usr/sbin/neat-gui !/usr/sbin/nscd !/usr/sbin/ping6 !/usr/sbin/tracepath6 !/usr/sbin/traceroute6 !/usr/sbin/up2date !/usr/sbin/up2date-.* !/usr/sbin/sys.* !/usr/sbin/ram.* !/usr/sbin/readprofile !/usr/sbin/rdev !/usr/sbin/root.* !/usr/sbin/traceroute6 !/usr/sbin/tune.* !/usr/sbin/updfstab !/usr/sbin/userhelper !/usr/sbin/usernetctl !/usr/sbin/v4l-conf !/usr/sbin/v4l.* !/usr/sbin/vidmode !/usr/share/redhat.* !/var/lib/rpm.* # Packages that need to be brought over in toto (along with all their # dependencies); note the !rpm-except list below: # apache apache-manual chkconfig crontabs cyrus-sasl-gssapi cvs db4 db4-devel db4-utils diffutils gd gd-devel gdbm groff httpd httpd-manual ImageMagick ImageMagick-c++ ImageMagick-c++-devel ImageMagick-devel ImageMagick-perl krb5-libs libxslt libxslt-devel links logrotate lynx man mod_dav mod_perl mod_ssl mysql mysql-devel mysql-server nss_ldap openssh openssh-clients openssh-server openssl openssl-devel openssl-perl openldap-clients pam perl perl-CGI perl-CPAN perl-Crypt-SSLeay perl-DateManip perl-DBD-MySQL perl-DB_File perl-DB_File perl-DBI perl-Digest-HMAC perl-Digest-SHA1 perl-Filter perl-Filter perl-HTML-Parser perl-HTML-Tagset perl-HTML-Template perl-libwww-perl perl-libxml-enno perl-libxml-perl perl-Net-DNS perl-Parse-Yapp perl-SGMLSpm perl-URI perl-XML-Dumper perl-XML-Encoding perl-XML-Grove perl-XML-Parser perl-XML-Twig php php-imap php-ldap php-mysql rcs rsync shadow-utils sudo tmpwatch wget # RPM exceptions (i.e., packages that should not be brought over) # !anacron !awesfx !bind !console-tools !cups !gdm !hwbrowser !ipchains !iproute !iptables !iputils !kbd !kdebase !kudzu !linuxconf !locale_config !locate !lokkit !mailx !mgetty !net-tools !pidentd !playmidi !ppp !printconf-gui !psacct !redhat-config-network !redhat-config-network-tui !rpm !samba !setserial !slocate !snmpd !squid !strace !sysstat !SysVinit !sysvinit !SysVInit !timidity++ !tux !up2date !usermode !util-linux !vixie-cron !xawtv !xinetd # Substitutions (format: replacementfilepattern-to-look-for) # # These substitutions remove hostname from shell prompts, etc. s/\[%..+?%c\]/[%n %~]/gs /etc/(t?csh|skel/\.t?csh).* s/\[`.+?`\\\]/[`id -nu` `pwd`]/gs /etc/(t?csh|skel/\.t?csh).* s/\[\\.*?\\W\]/[\\u \\W]/gs /etc/(bash|skel/\.bash).*