Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83046 - Sandbox violation during emerge of MYTHTV: ACCESS DENIED ERROR
Summary: Sandbox violation during emerge of MYTHTV: ACCESS DENIED ERROR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-23 02:20 UTC by Peter Canada
Modified: 2012-05-12 14:58 UTC (History)
0 users

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


Attachments
ACCESS VIOLATION SUMMARY (sandbox-media-tv_-_mythtv-0.17-24897.log,1.45 KB, text/x-log)
2005-02-23 02:21 UTC, Peter Canada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Canada 2005-02-23 02:20:36 UTC
When I attempt to emerge mythtv, I get a sandbox violation, the sandbox refers to the way gentoo keeps compiles completely self-contained and doesn't allow them to access stuff on the main system. What's happening in this case is that the compile is trying to reach outside the sandbox and gentoo is laying the smack down hard on it

Example:

mkdir: cannot create directory `/usr/var/tmp//portage/mythtv-0.17/image/../../../../../../../share': Permission denied
make[1]: *** [install_themes] Error 1
make[1]: Leaving directory `/usr/var/tmp/portage/mythtv-0.17/work/mythtv-0.17/themes'
( [ -d setup ] && cd setup ; make -f Makefile install; ) || true
make[1]: Entering directory `/usr/var/tmp/portage/mythtv-0.17/work/mythtv-0.17/setup'
ACCESS DENIED  mkdir:     /share


You can override the sandbox if you want (FEATURES="-sandbox" emerge blah) but it's not a good habit to get into

Reproducible: Always
Steps to Reproduce:
1. emerge mythtv as root with sandbox enabled (this is the default)
2.
3.

Actual Results:  
Failed compile!

Expected Results:  
Successfule compile!

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r12 i686)
=================================================================
System uname: 2.6.9-gentoo-r12 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 10 2005, 12:45:47)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/var/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X acpi aim alsa apache2 apm arts avi berkdb bitmap-fonts cdr
crypt cups curl divx4linux doc dvd dvdr emboss encode esd f77 fam firefox flac
font-server foomaticdb fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2
imagemagick imagemagik imlib innodb ipv6 java joystick jpeg junit libg++ libwww
mad mikmod mmx motif mozilla mpeg mysql mysqli ncurses nls nvidia oggvorbis
openal opengl oscar oss pam pda pdflib perl php php4 png python quicktime
readline real samba sdl silc slang snmp sockets socks5 spell spl sse ssl svga
tcltk tcpd tiff truetype truetype-fonts type1-fonts usb videos wma xine xml xml2
xmms xpm xv xvid xvidinfo yahoo zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Peter Canada 2005-02-23 02:21:57 UTC
Created attachment 51931 [details]
ACCESS VIOLATION SUMMARY

Here is the access log summary
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2005-02-23 10:18:39 UTC
Looks like an issue with PORTAGE_TMPDIR being set.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2005-05-15 22:54:36 UTC
Please re-try with newer version of Portage and of 0.18-r* of the ebuild.
Comment 4 jannis 2012-03-01 13:59:55 UTC
Sorry if I wake a zombie here, but: Can this be closed? The days of mythtv-0.17 and 0.18 are loooong gone ...