Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335500 - app-emulation/virtualbox-ose: more binaries need "pax-mark -m"
Summary: app-emulation/virtualbox-ose: more binaries need "pax-mark -m"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 350475
  Show dependency tree
 
Reported: 2010-09-01 11:18 UTC by PaX Team
Modified: 2011-01-07 00:33 UTC (History)
1 user (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 PaX Team 2010-09-01 11:18:34 UTC
due to text relocations in certain vbox libraries, all of the following executables need to relax MPROTECT:

already done in the ebuild:
- PaX flags: -----m-x-e-- [/usr/lib/virtualbox-ose/VBoxHeadless]
- PaX flags: -----m-x-e-- [/usr/lib/virtualbox-ose/VBoxSDL]
- PaX flags: -----m-x-e-- [/usr/lib/virtualbox-ose/VirtualBox]

need to be added:
- PaX flags: -----m-x-e-- [/usr/lib/virtualbox-ose/VBoxManage]
- PaX flags: -----m-x-e-- [/usr/lib/virtualbox-ose/VBoxSVC]
- PaX flags: -----m-x-e-- [/usr/lib/virtualbox-ose/VBoxTestOGL]
- PaX flags: -----m-x-e-- [/usr/lib/virtualbox-ose/VBoxXPCOMIPCD]

Reproducible: Always
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-10-20 22:32:35 UTC
Hardened team, feel free to add any changes which are necessary to the ebuilds.
Comment 2 Anthony Basile gentoo-dev 2010-12-22 03:00:12 UTC
(In reply to comment #1)
> Hardened team, feel free to add any changes which are necessary to the ebuilds.
> 

virtualbox-ose needs more than just the pax markings to work on hardened.  It also needs to be compiled no-pie.  This is usually done by setting CFLAGS="${CFLAGS} -fno-pie" but I don't understand the kmk build system and setting the environment variable doesn't work.  I haven't figured out how to do it without seriously hacking it up --- probably in bad ways.  Any hints?

(Althernative a hardened user can switch to x86_64-pc-linux-gnu-4.4.4-hardenednopie and compile with that.)

Comment 3 Anthony Basile gentoo-dev 2011-01-07 00:33:15 UTC
Done as of virtualbox-ose-3.2.12-r2.ebuild

I'm closing this for now.  If there are still issues, please reopen.