From: Travis Tilley Date: Thu, 7 Oct 2004 04:36:19 +0000 (+0000) Subject: add a small sandbox fix and a /dev/null check to aid in debugging bug 65876 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e9270e3af2aa30ff6aa7cb3600a0c98349b3c4cc;p=gentoo.git add a small sandbox fix and a /dev/null check to aid in debugging bug 65876 --- diff --git a/profiles/default-amd64-2004.0/profile.bashrc b/profiles/default-amd64-2004.0/profile.bashrc index a23dacf85363..f423676acb60 100644 --- a/profiles/default-amd64-2004.0/profile.bashrc +++ b/profiles/default-amd64-2004.0/profile.bashrc @@ -3,3 +3,25 @@ #SANDBOX_WRITE="${SANDBOX_WRITE}:/usr/lib64/conftest:/usr/lib64/cf" addwrite /usr/lib64/conftest addwrite /usr/lib64/cf + +# oh goodie, yet ANOTHER sandbox bug!!!! >:| +# without portage 2.0.51 and the following entries, at least dbus will spew +# sandbox violations like mad with python in lib64. +addpredict /usr/lib64/python2.0/ +addpredict /usr/lib64/python2.1/ +addpredict /usr/lib64/python2.2/ +addpredict /usr/lib64/python2.3/ +addpredict /usr/lib64/python2.4/ +addpredict /usr/lib64/python2.5/ +addpredict /usr/lib64/python3.0/ + +# sandbox is disabled for /dev/null by default, so this bug isnt caught. +# hopefully this will help us figure out where this problem occurs... +if [ ! -e /dev/null ] ; then + eerror "/dev/null doesnt exist! this is bad! tail -n 20 /var/log/emerge.log and attach the output to http://bugs.gentoo.org/show_bug.cgi?id=65876" + exit 1 +elif [ -f /dev/null ] ; then + eerror "/dev/null is a normal file! this is bad! tail -n 20 /var/log/emerge.log and attach the output to http://bugs.gentoo.org/show_bug.cgi?id=65876" + exit 1 +fi + diff --git a/profiles/default-amd64-2004.2/profile.bashrc b/profiles/default-amd64-2004.2/profile.bashrc index a23dacf85363..f423676acb60 100644 --- a/profiles/default-amd64-2004.2/profile.bashrc +++ b/profiles/default-amd64-2004.2/profile.bashrc @@ -3,3 +3,25 @@ #SANDBOX_WRITE="${SANDBOX_WRITE}:/usr/lib64/conftest:/usr/lib64/cf" addwrite /usr/lib64/conftest addwrite /usr/lib64/cf + +# oh goodie, yet ANOTHER sandbox bug!!!! >:| +# without portage 2.0.51 and the following entries, at least dbus will spew +# sandbox violations like mad with python in lib64. +addpredict /usr/lib64/python2.0/ +addpredict /usr/lib64/python2.1/ +addpredict /usr/lib64/python2.2/ +addpredict /usr/lib64/python2.3/ +addpredict /usr/lib64/python2.4/ +addpredict /usr/lib64/python2.5/ +addpredict /usr/lib64/python3.0/ + +# sandbox is disabled for /dev/null by default, so this bug isnt caught. +# hopefully this will help us figure out where this problem occurs... +if [ ! -e /dev/null ] ; then + eerror "/dev/null doesnt exist! this is bad! tail -n 20 /var/log/emerge.log and attach the output to http://bugs.gentoo.org/show_bug.cgi?id=65876" + exit 1 +elif [ -f /dev/null ] ; then + eerror "/dev/null is a normal file! this is bad! tail -n 20 /var/log/emerge.log and attach the output to http://bugs.gentoo.org/show_bug.cgi?id=65876" + exit 1 +fi + diff --git a/profiles/gcc34-amd64-2004.1/profile.bashrc b/profiles/gcc34-amd64-2004.1/profile.bashrc index a23dacf85363..f423676acb60 100644 --- a/profiles/gcc34-amd64-2004.1/profile.bashrc +++ b/profiles/gcc34-amd64-2004.1/profile.bashrc @@ -3,3 +3,25 @@ #SANDBOX_WRITE="${SANDBOX_WRITE}:/usr/lib64/conftest:/usr/lib64/cf" addwrite /usr/lib64/conftest addwrite /usr/lib64/cf + +# oh goodie, yet ANOTHER sandbox bug!!!! >:| +# without portage 2.0.51 and the following entries, at least dbus will spew +# sandbox violations like mad with python in lib64. +addpredict /usr/lib64/python2.0/ +addpredict /usr/lib64/python2.1/ +addpredict /usr/lib64/python2.2/ +addpredict /usr/lib64/python2.3/ +addpredict /usr/lib64/python2.4/ +addpredict /usr/lib64/python2.5/ +addpredict /usr/lib64/python3.0/ + +# sandbox is disabled for /dev/null by default, so this bug isnt caught. +# hopefully this will help us figure out where this problem occurs... +if [ ! -e /dev/null ] ; then + eerror "/dev/null doesnt exist! this is bad! tail -n 20 /var/log/emerge.log and attach the output to http://bugs.gentoo.org/show_bug.cgi?id=65876" + exit 1 +elif [ -f /dev/null ] ; then + eerror "/dev/null is a normal file! this is bad! tail -n 20 /var/log/emerge.log and attach the output to http://bugs.gentoo.org/show_bug.cgi?id=65876" + exit 1 +fi +