Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163104 - x11-wm/ion3-20061223 sandbox violation
Summary: x11-wm/ion3-20061223 sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matti Bickel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-21 18:19 UTC by Benoit GANNE
Modified: 2007-01-22 20:01 UTC (History)
1 user (show)

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


Attachments
ebuild patch to make it install (diff.patch,949 bytes, patch)
2007-01-21 20:27 UTC, Marien Zwart (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benoit GANNE 2007-01-21 18:19:05 UTC
when trying to upgrade from x11-wm/ion3-20060326 to x11-wm/ion3-20061223, a sandbox violation occures.
============== BEGIN EMERGE MESSAGE ===============
[...]
ACCESS DENIED  symlink:   /usr/lib/ion3/lc/ext_statusbar.lc
ln: creating symbolic link `/usr/lib/ion3/lc/ext_statusbar.lc': Permission denied
make[1]: *** [symlink_install] Error 1
make[1]: *** Waiting for unfinished jobs....
for i in  statusd_date.lc statusd_mail.lc statusd_load.lc; do \
                /bin/install -c -m 644 $i /var/tmp/portage/ion3-20061223/image//usr/lib/ion3/lc; \
        done
mkdir -p /usr/libexec/ion3/bin
/bin/install -c -s -m 755 ion-statusd /usr/libexec/ion3/bin
ACCESS DENIED  unlink:    /usr/libexec/ion3/bin/ion-statusd
/bin/install: cannot remove `/usr/libexec/ion3/bin/ion-statusd': Permission denied
make[2]: *** [_install] Error 1
make[2]: Leaving directory `/var/tmp/portage/ion3-20061223/work/ion-3ds-20061223/mod_statusbar/ion-statusd'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/var/tmp/portage/ion3-20061223/work/ion-3ds-20061223/mod_statusbar'
make: *** [subdirs-install] Error 2

!!! ERROR: x11-wm/ion3-20061223 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_install
  ebuild.sh, line 1020:   Called src_install
  ion3-20061223.ebuild, line 141:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-x11-wm_-_ion3-20061223-19850.log"

symlink:   /usr/lib/ion3/lc/ext_statusbar.lc
unlink:    /usr/libexec/ion3/bin/ion-statusd
--------------------------------------------------------------------------------
============== END EMERGE MESSAGE ===============

============== BEGIN EMERGE INFO ===============
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 1500+
Gentoo Base System version 1.12.6
Last Sync: Sun, 21 Jan 2007 12:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mtune=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.intergenia.de"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac alsa alsa_cards_ens1371 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol amr apache2 bash-completion berkdb bitmap-fonts bzip2 cairo cli cracklib crypt cscope directfb dlloader dri dvd elibc_glibc encode flac fortran gdbm gif gnutls iconv input_devices_keyboard input_devices_mouse input_devices_ps2mouse ipv6 isdnlog jpeg kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text libg++ linguas_en logrotate mad mikmod mmx mmxext mng mp3 mpeg ncurses nptl nptlonly ogg oss pam pcre perl png ppds pppd python quicktime readline reflection sdl session speex spl sse ssl svg tcpd tetex threads tiff truetype truetype-fonts type1-fonts udev userland_GNU video_cards_fbdev video_cards_nv video_cards_vesa vorbis wma wmf xinetd xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
============== END EMERGE INFO ===============

I also tried without usersandbox and without userpriv, and get the same error. I then tried to remove manually both incriminated files, but the installer failed to get write permission in the directories.

Reproducible: Always

Steps to Reproduce:
1.update ion3 to x11-wm/ion3-20061223
2.
3.
Comment 1 pi 2007-01-21 19:28:56 UTC
same over here (amd64)
Comment 2 Marien Zwart (RETIRED) gentoo-dev 2007-01-21 20:27:31 UTC
Created attachment 107719 [details, diff]
ebuild patch to make it install

This makes it install without getting killed by sandbox. Unfortunately the resulting binary is segfaulting on me, and I have not tracked down why yet. I do not think this ebuild patch is responsible for that, but until I figure out why it's crashing I can't entirely rule it out, so use at your own risk :)
Comment 3 DArt 2007-01-22 09:39:25 UTC
This patch working for me. Thx.
Comment 4 pi 2007-01-22 10:13:32 UTC
With the patch it installs fine. Also no segfaults yet, so I assume it's working on my amd64 system.

thx
Comment 5 Matti Bickel (RETIRED) gentoo-dev 2007-01-22 20:01:31 UTC
Thanks for the report. Took some time till i figured out why this really needed */*/Makefile and */Makefile :|

It's now fixed in CVS.