Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72413 - gtkdiskfree-1.9.3 install violates the sandbox
Summary: gtkdiskfree-1.9.3 install violates the sandbox
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-24 19:32 UTC by Yaakov S
Modified: 2004-11-29 17:59 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 Yaakov S 2004-11-24 19:32:19 UTC
Make install in gtkdiskfree-1.9.3/po causes violations of the sandbox.  The problem is that the installdir variables aren't preceded by $(DESTDIR), and make install tries to install directly to /usr/share/locale, which violates the sandbox.

Reproducible: Always
Steps to Reproduce:
1.emerge gtkdiskfree

Actual Results:  
Here's the relevant output from make install:

Making install in po
make[1]: Entering directory
`/var/tmp/portage/gtkdiskfree-1.9.3/work/gtkdiskfree-1.9.3/po'
if test -r ".././mkinstalldirs"; then \
  .././mkinstalldirs /usr/share; \
else \
  /bin/sh ../mkinstalldirs /usr/share; \
fi
ACCESS DENIED  open_wr:   /usr/share/locale/fr/LC_MESSAGES/gtkdiskfree.mo
/bin/install: cannot create regular file
`/usr/share/locale/fr/LC_MESSAGES/gtkdiskfree.mo': Permission denied
installing fr.gmo as /usr/share/locale/fr/LC_MESSAGES/gtkdiskfree.mo
ACCESS DENIED  open_wr:   /usr/share/locale/pl/LC_MESSAGES/gtkdiskfree.mo
/bin/install: cannot create regular file
`/usr/share/locale/pl/LC_MESSAGES/gtkdiskfree.mo': Permission denied
installing pl.gmo as /usr/share/locale/pl/LC_MESSAGES/gtkdiskfree.mo
ACCESS DENIED  open_wr:   /usr/share/locale/ru/LC_MESSAGES/gtkdiskfree.mo
/bin/install: cannot create regular file
`/usr/share/locale/ru/LC_MESSAGES/gtkdiskfree.mo': Permission denied
installing ru.gmo as /usr/share/locale/ru/LC_MESSAGES/gtkdiskfree.mo

And emerge exits with the following error:

--------------------------- ACCESS VIOLATION SUMMARY---------------------------
LOG FILE = "/tmp/sandbox-app-admin_-_gtkdiskfree-1.9.3-11733.log"

open_wr:   /usr/share/locale/fr/LC_MESSAGES/gtkdiskfree.mo
open_wr:   /usr/share/locale/pl/LC_MESSAGES/gtkdiskfree.mo
open_wr:   /usr/share/locale/ru/LC_MESSAGES/gtkdiskfree.mo
--------------------------------------------------------------------------------



Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.4.26-gentoo-r11 i686)
=================================================================
System uname: 2.4.26-gentoo-r11 i686 AMD Athlon(TM)
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=i686 -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X accessibility aim alsa apm arts audiofile avi berkdb bitmap-fonts bonobo
cdr crypt cups curl emacs encode esd exif f77 fam flac foomaticdb fortran ftp gd
gdbm gif gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile icq imagemagick imlib
java jpeg junit kde lcms libg++ libgda libwww mad mikmod mime ming mmap motif
mozilla mpeg mysql ncurses nls odbc oggvorbis opengl oscar oss pam pcre pda
pdflib perl ping png postgres ppds python qt quicktime readline ruby sasl sdl
shared sndfile spell sqlite ssl svg svga tcltk tcpd tetex tidy tiff truetype usb
wmf wxwindows x86 xml xml2 xmms xpm xv yahoo zlib"
Comment 1 SpanKY gentoo-dev 2004-11-29 17:59:55 UTC
hrm, i tested gtkdiskfree on a box that had USE=-nls instead of my normal box

fixed in cvs