Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349332 - app-emulation/virtualbox-bin: vboxwebsrv needs "pax-mark -m"
Summary: app-emulation/virtualbox-bin: vboxwebsrv needs "pax-mark -m"
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal (vote)
Deadline: 2020-09-21
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2010-12-22 00:13 UTC by Aleksander Wałęski
Modified: 2020-09-21 07:31 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksander Wałęski 2010-12-22 00:13:01 UTC
+++ This bug was initially created as a clone of Bug #335500 +++

vboxwebsrv (if built) needs to have MPROTECT disabled, otherwise it fails with NS_ERROR_FACTORY_NOT_REGISTERED message.
Comment 1 Anthony Basile gentoo-dev 2011-03-24 00:17:04 UTC
I believe this has been taken care of.  Can you check with the latest virtualbox and report back so I can close this one.
Comment 2 Anthony Basile gentoo-dev 2011-04-04 20:48:20 UTC
Reopen if this is still a problem.
Comment 3 Aleksander Wałęski 2011-04-13 12:45:03 UTC
Problem still exists. I believe virtualbox doesn't work well with pax and vboxwebsrv is just a binary that was missed during ebuild creation.

Details (proof and steps to replicate) below:

~ $ /opt/VirtualBox/vboxwebsrv
Oracle VM VirtualBox web service version 4.0.4
(C) 2005-2011 Oracle Corporation
All rights reserved.
vboxwebsrv: error: failed to create the VirtualBoxClient object!
vboxwebsrv: error: Code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available)
vboxwebsrv: error: Most likely, the VirtualBox COM server is not running or failed to start.

~ # paxctl -v /opt/VirtualBox/vboxwebsrv
PaX control v0.5
Copyright 2004,2005,2006,2007 PaX Team <pageexec@freemail.hu>

file /opt/VirtualBox/vboxwebsrv does not have a PT_PAX_FLAGS program header, try conversion

~ # paxctl -c /opt/VirtualBox/vboxwebsrv
file /opt/VirtualBox/vboxwebsrv had a PT_GNU_STACK program header, converted

~ # paxctl -v /opt/VirtualBox/vboxwebsrv
PaX control v0.5
Copyright 2004,2005,2006,2007 PaX Team <pageexec@freemail.hu>

- PaX flags: -------x-e-- [/opt/VirtualBox/vboxwebsrv]
        RANDEXEC is disabled
        EMUTRAMP is disabled

~ # paxctl -m /opt/VirtualBox/vboxwebsrv

~ $ /opt/VirtualBox/vboxwebsrv
Oracle VM VirtualBox web service version 4.0.4
(C) 2005-2011 Oracle Corporation
All rights reserved.
2011-04-13 14:36:59 [ P ] Socket connection successful: host = default (localhost), port = 18083, master socket = 8
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-09-21 07:31:22 UTC
removed.