Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32094 - baselayout-1.8.6.11 sandbox violation tries to remove //etc/hosts
Summary: baselayout-1.8.6.11 sandbox violation tries to remove //etc/hosts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High critical
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-27 04:48 UTC by Sami Näätänen
Modified: 2003-10-27 05:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sami Näätänen 2003-10-27 04:48:48 UTC
Lines 290 - 291 are:
# We do not want to overwrite the user's settings
[ -f "${ROOT}/etc/hosts" ] && rm -f ${ROOT}/etc/hosts

Should be:
# We do not want to overwrite the user's settings
[ -f "${ROOT}/etc/hosts" ] && rm -f ${D}/etc/hosts


Reproducible: Always
Steps to Reproduce:
emerge baselayout

Actual Results:  
emerge fails with sandbox violation

unlink rm //etc/hosts


Expected Results:  
merge baselayout correctly


Portage 2.0.49-r10 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r1, 2.4.20-gentoo-r5)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.4.3.11
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -mfpmath=sse -g -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config /var/qmail/control /var/qmail/alias"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /usr/kde /etc/X11/xkb /etc/X11/xdm
/etc/X11/xserver /etc/X11/xsm /etc/X11/xinit /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -mfpmath=sse -g -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs nostrip userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org/ ftp://trumpetti.atm.tut.fi/gentoo/
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 foomaticdb mad -3dfx -3dnow -aalib -acl acpi -afs -alsa apache2 -apm
-arts -atlas avi -berkdb -bonobo -canna cdr -cjk crypt cups -curl debug -dga
-directfb doc dvb dvd emacs encode esd -ethereal -ev6 -evo fbcon -firebird flash
-freetds -freewn -gb gd gdbm ggi gif -gnome -gnome-libs gphoto2 gpm gps gtk
-gtk2 -gtkhtml -guile -icc -icc-pgo imap imlib innodb ipv6 java -jikes joystick
jpeg junit -kde -kerberos ladcca lcms -ldap leim libg++ -libgda libwww lirc
maildir -matrox -mbox -mcal mikmod memlimit mmx -motif mozilla mpeg mpi mule
-mysql -nas ncurses -nhc98 nls -nocardbus oav -oci8 -odbc oggvorbis opengl oss
pam -pcmcia -pda pdflib perl plotutils png -pnp postgres -prebuilt python qt
quicktime readline -ruby samba -sasl scanner sdl -selinux -slang slp -snmp
-socks5 -spell sse ssl -static -svga -tcltk tcpd tetex tiff truetype -trusted
-voodoo3 -wavelan wmf X -xface -xinerama xml xml2 xmms xv -zeo zlib moznoirc
moznomail moznocompose acpi4linux pic examples"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-10-27 05:08:10 UTC
fixed in cvs