# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: misc/jailing/postsysfiles.in # Copyright (C) 2004 - 2005 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # More information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- # Add library paths to ld.so.conf for jailed packages # if [ "${SDECFG_JAILING}" = 1 ] then templist=`mktemp` for x in `grep '^X .* JAIL ' $base/config/$config/packages \ | cut -d' ' -f5`; do if eval "[ \"\${SDECFG_JAILING_$x}\" = 1 ]" ; then if eval "[ ! \"\${SDECFG_JAILDIR_$x}\" ]" ; then eval "export \${SDECFG_JAILDIR_$x}=\ \"${SDECFG_BASEJAIL}/$x\"" fi eval "echo $root/\"\${SDECFG_JAILDIR_$x}\"/usr/lib \ >> $templist" fi done for x in `sort -u $templist | grep -vxf $root/etc/ld.so.conf`; do echo $x >> $root/etc/ld.so.conf done ldconfig rm $templist unset x templist fi