Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 156994

Summary: spca5xx and gspcav1 sandbox violation
Product: Gentoo Linux Reporter: Marti Raudsepp <marti>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
URL: https://forums.gentoo.org/viewtopic-t-511473.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Marti Raudsepp 2006-12-03 08:12:41 UTC
Both, the spca5xx and gspcav1 ebuilds (which are drivers for the same USB webcam chip) seem to cause sandbox violations with recent versions of kernel sources. I'm not the only person hitting this bug, see: https://forums.gentoo.org/viewtopic-t-511473.html

I'm using amd64 arch and the other person appears to be using i686; my kernel is 2.6.18-mm3, theirs is 2.6.19-rc2.

There is a temporary workaround to use FEATURES='-sandbox -usersandbox userpriv' -- by disabling the sandbox and using userpriv, the compilation process simply gets permission denied errors and handles those gracefully, instead of failing with sandbox violations.

Here are emerge outputs:

>>> Emerging (1 of 1) media-video/gspcav1-20060925 to /
[...]
make[1]: Leaving directory `/usr/src/linux-2.6.18-mm3'
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-media-video_-_gspcav1-20060925-17690.log"

open_wr:   /usr/src/linux-2.6.18-mm3/astest17751.out
open_wr:   /usr/src/linux-2.6.18-mm3/astest17755.out
open_wr:   /usr/src/linux-2.6.18-mm3/astest17759.out
open_wr:   /usr/src/linux-2.6.18-mm3/astest17763.out
open_wr:   /usr/src/linux-2.6.18-mm3/-.gcda
--------------------------------------------------------------------------------

>>> Emerging (1 of 1) media-video/spca5xx-20060501-r2 to /
[...]
make[1]: Leaving directory `/usr/src/linux-2.6.18-mm3'
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-media-video_-_spca5xx-20060501-r2-18456.log"

open_wr:   /usr/src/linux-2.6.18-mm3/astest18521.out
open_wr:   /usr/src/linux-2.6.18-mm3/astest18525.out
open_wr:   /usr/src/linux-2.6.18-mm3/astest18529.out
open_wr:   /usr/src/linux-2.6.18-mm3/astest18533.out
open_wr:   /usr/src/linux-2.6.18-mm3/-.gcda
--------------------------------------------------------------------------------

emerge --info:
Portage 2.1.1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-mm3-non14 x86_64)
=================================================================
System uname: 2.6.18-mm3-non14 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.6
Last Sync: Sun, 03 Dec 2006 15:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
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.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-fstack-protector -pipe -O2 -march=athlon64 -mtune=athlon64 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /usr/share/X11"
CXXFLAGS="-fstack-protector -pipe -O2 -march=athlon64 -mtune=athlon64 -fomit-frame-pointer"
DISTDIR="/usr/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.ipv6.linux.ee/pub/gentoo/distfiles/ http://ftp.linux.ee/pub/gentoo/distfiles/"
LANG="en_US"
LC_ALL="en_US.UTF-8"
LINGUAS="en en_US en_GB et"
MAKEOPTS="-j1"
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/musicbrainz-overlay /usr/local/portage /usr/portage/local/layman/xgl-coffee"
SYNC="rsync://rsync1.fi.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib adns alsa ao asf berkdb bitmap-fonts browserplugin bzip2 cairo cap caps cddb cli cracklib crypt cscope curl dbus dga dlloader dri dvd elibc_glibc exif fastcgi fbcon ffmpeg firefox flac gd gdbm gimp glitz glut gmp gnome gphoto2 gpm gtk hal iconv idn imagemagick input_devices_joystick input_devices_keyboard input_devices_mouse ipv6 isdnlog jbig joystick jpeg jpeg2k kernel_linux lcms libcaca libg++ linguas_en linguas_en_GB linguas_en_US linguas_et logrotate lzo mad matroska mikmod mmap mng motif mozilla moznoirc mozsvg mp3 mpeg mplayer musepack musicbrainz ncurses nptl nptlonly nsplugin ntfs offensive ogg oggvorbis openal opengl opensc pam pcre pcsc-lite perl png postgres ppds pppd python qt3 qt4 quotas randr readline reflection reiser4 reiserfs rtc samba sdl session smartcard speex spl sqlite ssl startup-notification svg theora tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU v4l v4l2 video_cards_fglrx video_cards_none video_cards_r200 video_cards_radeon video_cards_vesa vim-syntax vorbis wxwindows xgetdefault xine xml xml2 xorg xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-03 08:14:24 UTC
Please, search. This is fixed in latest Gentoo sources; we are not patching unsupported kernels.


*** This bug has been marked as a duplicate of 149307 ***
Comment 2 Marti Raudsepp 2006-12-03 08:17:18 UTC
(In reply to comment #1)
> Please, search. This is fixed in latest Gentoo sources; we are not patching
> unsupported kernels.

I searched for 'spca' and 'gspcav1', and neither yielded bug 149307. I have to complain that the Bugzilla search function is very complex and uncooperative. :(