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

Bug 331573

Summary: x11-drivers/xf86-video-virtualbox-3.2.8 sandbox violation: /dev/vboxuser
Product: Gentoo Linux Reporter: Christopher Byrne <salah.coronya>
Component: New packagesAssignee: Markus Ullmann (RETIRED) <jokey>
Status: RESOLVED DUPLICATE    
Severity: normal CC: polynomial-c, swapon
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Update mesa-check patch

Description Christopher Byrne 2010-08-07 20:10:09 UTC
x11-drivers/xf86-video-virtualbox-3.2.8 no longer compiles, due to the ./configure script accessing /dev/vboxuser testing for 3D support.

Checking for Mesa / GLU: ACCESS DENIED  open_wr:      /dev/vboxuser
OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM.
found version 1.2, OK
...
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-28891.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: /dev/vboxuser
A: /dev/vboxuser
R: /dev/vboxuser
C: /var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/work/VirtualBox-3.2.8_OSE/.tmp_out 
--------------------------------------------------------------------------------

>>> Failed to emerge x11-drivers/xf86-video-virtualbox-3.2.8, Log file:

>>>  '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-3.2.8/temp/build.log'
Comment 1 Christopher Byrne 2010-08-08 00:03:29 UTC
Created attachment 241817 [details, diff]
Update mesa-check patch

Made a minor tweak to the mesa checks patch: in the check_mesa function, the configure script compiles and runs a little program to test for Mesa, and the call to glXQueryVersion causes the problem.

However, I don't thinks it actually needed for the program to run - only compile and link. In fact, I'm not even sure its intended to be run - If XOpenDisplay fails, the test program succeeds without even calling glXQueryVersion. So I just removed the test_execute function in check_mesa. Now compiles and runs just fine.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-08-18 16:10:34 UTC
Does this still happen after you re-synced portage?
By looking at your patch it seems like you tried to emerge the package before I added the correct mesa-patch (see bug #331473).
Comment 3 Christopher Byrne 2010-08-20 19:10:20 UTC
The error no longer occurs now
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-08-20 21:53:51 UTC
So let's mark this bug as dupe then ;)

*** This bug has been marked as a duplicate of bug 331473 ***