Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19746 - Dvutil sandbox access violation
Summary: Dvutil sandbox access violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Pieter Van den Abeele (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-21 22:48 UTC by Robin Johnson
Modified: 2003-05-03 21:00 UTC (History)
0 users

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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-04-21 22:48:53 UTC
Some evilness in the dvutil doc/Makefile causes a sandbox access violation.
Bad stuff (at the end):
install-exec-local: # ensures this is done before install-data
    $(mkinstalldirs) -m 0755 $(pkgdatadir)/download

Original report was in bug #19715.


Reproducible: Always
Steps to Reproduce:
1. have usersandbox/sandbox in FEATURES, 'emerge dvutil'
2.
3.

Actual Results:  
make[2]: Leaving directory `/var/tmp/portage/dvutil-0.13.6/work/dvutil-
0.13.6/dvutil'
make[1]: Leaving directory `/var/tmp/portage/dvutil-0.13.6/work/dvutil-
0.13.6/dvutil'
Making install in doc
make[1]: Entering directory `/var/tmp/portage/dvutil-0.13.6/work/dvutil-
0.13.6/doc'
make[2]: Entering directory `/var/tmp/portage/dvutil-0.13.6/work/dvutil-
0.13.6/doc'
/bin/sh ../mkinstalldirs -m 0755 /usr/share/dvutil/download
mkdir -m 0755 -p -- /usr/share/dvutil/download
ACCESS DENIED  mkdir:     /usr/share/dvutil
mkdir: cannot create directory `/usr/share/dvutil': Permission denied
make[2]: *** [install-exec-local] Error 1
make[2]: Leaving directory `/var/tmp/portage/dvutil-0.13.6/work/dvutil-
0.13.6/doc'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/dvutil-0.13.6/work/dvutil-
0.13.6/doc'
make: *** [install-recursive] Error 1
man:
prepallstrip:
strip:
strip:
   /var/tmp/portage/dvutil-0.13.6/image/usr/bin/dvinclude
   /var/tmp/portage/dvutil-0.13.6/image/usr/bin/dvconfig
   /var/tmp/portage/dvutil-0.13.6/image/usr/lib/libdvutil-0.13.6.so
making executable: /usr/lib/libdvutil-0.13.6.so
>>> Completed installing into /var/tmp/portage/dvutil-0.13.6/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-dvutil-0.13.6-20776.log"

mkdir:     /usr/share/dvutil
-------------------------------------------------------------------------------

Expected Results:  
Should complete properly.

Portage 2.0.48_pre2 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r2 i686 AMD Athlon(tm) XP 1800+
GENTOO_MIRRORS="http://gentoo.oregonstate.edu "
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/co
nfig/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/gentoo-cvs/gentoo-x86"
USE="x86 tcpd -3dfx -alsa -arts -bonobo -canna -cjk -freewnn -gb -gnome -gps -
gtk2 -kde -kerberos -leim -libg++ -libgda -matrox -mbox -mule -nas -oci8 -
opengl -oss -pcmcia -postgres -voodoo3 -xface -xfs -zero 3dnow X aalib acl acpi 
activefilter -afs apache2 apm avi berkdb cdr crypt cups curl dga directfb dnd 
doc dvd encode esd ethereal expat fbcon flash gd gdbm ggi gif gpm gtk gtkhtml 
guile imap imlib innodb ipv6 java jikes jpeg junit lame lcms ldap libwww 
maildir mikmod mmx motif mozaccess mozcalendar mozilla mozinterfaceinfo mozp3p 
mozsvg mozxmlterm mpeg mysql ncurses nls nptl oav odbc oggvorbis pam pcap 
pdflib perl pic plotutils png pnp python qt quicktime readline ruby samba sasl 
sdl slang slp snmp socks5 spell sse ssl svga tcltk tetex tiff truetype ungif 
vscan wmf xml xml2 xmms xv zlib -bonobo -gnome"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j3"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="digest sandbox ccache buildpkg userpriv usersandbox"
Comment 1 Pieter Van den Abeele (RETIRED) gentoo-dev 2003-04-24 02:07:51 UTC
This will be fixed tonight
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-01 16:51:02 UTC
any progress made on this?
Comment 3 Pieter Van den Abeele (RETIRED) gentoo-dev 2003-05-02 06:03:32 UTC
it's a long night... hehe
I'll have a look at this asap
Comment 4 Pieter Van den Abeele (RETIRED) gentoo-dev 2003-05-03 21:00:41 UTC
src_compile() {
 econf --prefix=${D}/usr --datadir=${D}/usr/share || die
}

works