nixpkgs/pkgs
aszlig 2b58a6ab0d
virtualbox: Fix extension pack installation.
With hardening, we need to go a bit further rather than just allowing
/nix/store being world-writable. We now use fakeroot to make sure the
VBoxExtPackHelperApp won't moan that the files are not owned by root.

They are, but only outside of the chrooted build process.

Another issue with using fakeroot is that it doesn't seem to cope well
with arguments that contain spaces. That's why I've piped the call into
${stdenv.shell}.

Now, the really gory and confusing part is the introduction of
VBOX_PATH_APP_PRIVATE_ARCH_TOP and the change of VBOX_PATH_APP_PRIVATE.

The VBOX_PATH_APP_PRIVATE_ARCH is *only* for modules and is checked by
the hardened implementation against whether things like VMMR0.r0 or
VBoxVMM.so reside in that directory. As a side note: I admit that the
whole libexec directory is quite polluted with stuff that shouldn't be
there, but for now we've broken enough things and will tear apart the
whole structure at some day in the future[TM].

For the confusing part we have VBOX_PATH_APP_PRIVATE_ARCH_TOP, which
_should_ be the same as VBOX_PATH_APP_PRIVATE_ARCH but unfortunately,
the hardened implementation is checking against this directory (in
IsValidBaseDir) for the extension pack(why!?).

Of course, we could put even that into the libexec directory, somewhat
similar as the official package, but after all, let's at least *try* to
separate things.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-12-01 03:32:55 +01:00
..
applications virtualbox: Fix extension pack installation. 2014-12-01 03:32:55 +01:00
build-support nixos: Rename virtualbox to virtualboxGuest. 2014-11-27 18:42:22 +01:00
data tzdata: Update to 2014j 2014-11-25 00:42:22 +01:00
desktops boost: Pin packages to 1.56 2014-11-30 05:31:02 -08:00
development rubyLibs: add tmuxinator, update 2014-12-01 00:39:40 +01:00
games performous: new package 2014-11-25 21:39:46 +08:00
misc my-env: Use sed to substitute $initialPath. 2014-11-25 14:14:43 +01:00
os-specific Consolidate conf-compile steps for skarnet.org pkgs. 2014-11-28 13:10:37 -06:00
servers munin: 2.0.21 -> 2.0.25 2014-11-30 20:42:06 +01:00
shells
stdenv
test
tools afl: 0.68b -> 0.79b 2014-11-30 13:19:26 -06:00
top-level nodePackages: hack version override sed some more to support github packages, until better solution is found 2014-12-01 03:04:55 +01:00