/[path-sandbox]/trunk/sandbox.bashrc
Gentoo

Contents of /trunk/sandbox.bashrc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71 - (hide annotations) (download)
Wed May 4 14:46:50 2005 UTC (9 years, 4 months ago) by azarah
File size: 502 byte(s)
Do not reset already set LD_PRELOAD when starting sandbox.  If LD_PRELOAD is
already set, init of the env vars fails for some reason, so do this later on,
and do not warn (bug #91431).

1 ferringb 2 # Copyright (C) 2001 Geert Bevin, Uwyn, http://www.uwyn.com
2     # Distributed under the terms of the GNU General Public License, v2 or later
3     # Author : Geert Bevin <gbevin@uwyn.com>
4     # $Header$
5     source /etc/profile
6 azarah 71
7     if [[ -n ${LD_PRELOAD} && ${LD_PRELOAD} != *$SANDBOX_LIB* ]] ; then
8     export LD_PRELOAD="${SANDBOX_LIB} ${LD_PRELOAD}"
9     elif [[ -z ${LD_PRELOAD} ]] ; then
10     export LD_PRELOAD="${SANDBOX_LIB}"
11     fi
12    
13     alias make="make LD_PRELOAD=${LD_PRELOAD}"
14     alias su="su -c '/bin/bash -rcfile ${SANDBOX_BASHRC}'"

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20