Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265144 - media-libs/allegro-4.2.2-r1 sandbox violation
Summary: media-libs/allegro-4.2.2-r1 sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-06 19:34 UTC by Rémi
Modified: 2017-06-22 08:22 UTC (History)
0 users

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


Attachments
patch that deletes ldconfig call in makefile.in (allegro-4.2.2-ldconfig_sandbox.patch,1.30 KB, patch)
2009-04-07 20:09 UTC, Rémi
Details | Diff
ebuild that patch with the ldconfig_sandbox patch (allegro-4.2.2-r1.ebuild,2.57 KB, text/plain)
2009-04-07 20:12 UTC, Rémi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rémi 2009-04-06 19:34:21 UTC
Allegro compiles fine but there is a sandbox violation during installation on the file /etc/ld.so.cache~
Allegro emerged as a dependency of liquidwar
sandbox version: 1.8
emerge -pv allegro gives:
[ebuild  N    ] media-libs/allegro-4.2.2-r1  USE="X alsa jack -arts -esd -fbcon -oss -svga -vga" 0 kB


Reproducible: Always

Steps to Reproduce:
emerge allegro

Actual Results:  
sandbox violation

Expected Results:  
no sandbox violation

end of emerge output :
Installing lib/unix/alleg-alsamidi.so to /var/tmp/portage/media-libs/allegro-4.2.2-r1/image//usr/lib/allegro/4.2.2
Installing lib/unix/alleg-jackdigi.so to /var/tmp/portage/media-libs/allegro-4.2.2-r1/image//usr/lib/allegro/4.2.2
/bin/sh ./misc/mkdirs.sh /var/tmp/portage/media-libs/allegro-4.2.2-r1/image//usr/bin
Installing allegro-config to /var/tmp/portage/media-libs/allegro-4.2.2-r1/image//usr/bin
ACCESS DENIED  open_wr:      /etc/ld.so.cache~
/bin/sh ./misc/mkdirs.sh /var/tmp/portage/media-libs/allegro-4.2.2-r1/image//usr/share/aclocal
mkdir /var/tmp/portage/media-libs/allegro-4.2.2-r1/image/usr/share
mkdir /var/tmp/portage/media-libs/allegro-4.2.2-r1/image/usr/share/aclocal
Installing allegro.m4 to /var/tmp/portage/media-libs/allegro-4.2.2-r1/image//usr/share/aclocal

Run make docs-dvi if you wish to generate dvi documentation (you need texi2dvi).
Run make docs-pdf if you wish to generate PDF documentation (you need texi2pdf).
Run make install-man if you wish to install the man pages.
Run make install-info if you wish to install the info documentation.
You may conserve space by instead running make install-gzipped-man
and/or make install-gzipped-info.  Or install-bzipped-man,
install-bzipped-info to use bzip2 instead of gzip.
>>> Completed installing allegro-4.2.2-r1 into /var/tmp/portage/media-libs/allegro-4.2.2-r1/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-31960.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /etc/ld.so.cache~
A: /etc/ld.so.cache~
R: /etc/ld.so.cache~
C: /sbin/ldconfig /usr/lib 
--------------------------------------------------------------------------------
 * QA Notice: Unrecognized configure options:
 * 
 * 	configure: WARNING: unrecognized options: --enable-xwin-dga
 * 	configure: WARNING: unrecognized options: --enable-xwin-dga

>>> Failed to emerge media-libs/allegro-4.2.2-r1, Log file:

>>>  '/var/tmp/portage/media-libs/allegro-4.2.2-r1/temp/build.log'


emerge --info :
Portage 2.1.6.11 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo i686)
=================================================================
System uname: Linux-2.6.29-gentoo-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-glibc2.0
Timestamp of tree: Sun, 05 Apr 2009 19:15:01 +0000
app-shells/bash:     4.0_p10-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.8
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.ovh.net/gentoo-distfiles/ http://mirror.ovh.net/gentoo-distfiles/ "
LANG="fr_FR.UTF-8@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="fr en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa avahi bash-completion berkdb bluetooth bzip2 cairo cddb cdr cli cracklib crypt css cups cxx dbus directfb dri dvd ffmpeg fftw firefox flac fortran gdbm gdm gedit gimp glitz gnome gnuplot gpm gstreamer gtk hal hddtemp i810 i915 iconv icq ieee1394 intel ipod ipv6 isdnlog jack java java6 joystick jpeg jpeg2k ladspa lash lv2 matroska midi mozilla mp3 mpeg msn mudflap ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pcre pdf perl plotutils pppd python quicktime readline reflection ruby samba scanner sdl session smp sockets spl sse2 sse3 ssl subversion svg sysfs tcpd tiff unicode usb v4l v4l2 vlc voodoo wifi win32codecs x86 xcb xorg xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard evdev mouse touchpad tablet" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2009-04-06 22:29:03 UTC
allegro is broken ... it shouldnt be trying to write /etc/ld.so.cache~
Comment 2 Rémi 2009-04-07 09:12:07 UTC
Is there a workaround ?
Does it need ebuild modification ? or a patch ?
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2009-04-07 17:01:51 UTC
allegro doesn't try to write to /etc/ld.so.cache~ directly.

It does call ldconfig though.
Comment 4 Rémi 2009-04-07 20:09:10 UTC
Created attachment 187632 [details, diff]
patch that deletes ldconfig call in makefile.in
Comment 5 Rémi 2009-04-07 20:12:20 UTC
Created attachment 187634 [details]
ebuild that patch with the ldconfig_sandbox patch

might be renamed to 4.2.2-r2
Comment 6 Rémi 2009-04-07 20:28:06 UTC
It worked with the patch.
Can someone add it in portage tree ?
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2009-04-07 21:09:07 UTC
wow overkill.

resync and try it again.