nixpkgs/pkgs
aszlig 3e49487c1a
virtualbox: Enable hardening by default.
VirtualBox with hardening support requires the main binaries to be
setuid root. Using VBOX_WITH_RUNPATH, we ensure that the RPATHs are
pointing to the libexec directory and we also need to unset
VBOX_WITH_ORIGIN to make sure that the build system is actually setting
those RPATHs.

The hardened.patch implements two things:

 * Set the binary directory to the setuid-wrappers dir so that
   VboxSVC calls them instead of the binaries from the store path. The
   reason behind this is because nothing in the Nix store can have the
   setuid flag.
 * Excempt /nix/store from the group permission check, because while it
   is group-writeable indeed it also has the sticky bit set (and also
   the whole store is mounted read-only on most NixOS systems), so we're
   checking on that as well.

Right now, the hardened.patch uses /nix/store and /var/setuid-wrappers
directly, so someone would ever want to change those on a NixOS system,
please provide a patch to set those paths on build time. However, for
simplicity, it's best to do it when we _really_ need it.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-11-29 19:21:46 +01:00
..
applications virtualbox: Enable hardening by default. 2014-11-29 19:21:46 +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 e18: remove old desktop manager 2014-11-26 21:44:23 +01:00
development lablgl: place libs correctly 2014-11-29 14:21:16 +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 Merge pull request #5088 from offlinehacker/nixos/kubernetes 2014-11-29 16:44:42 +01:00
shells
stdenv Merge branch 'master' into staging 2014-11-14 14:28:23 +01:00
test
tools Merge pull request #5168 from pmahoney/skarnet-refactor 2014-11-29 02:48:06 +01:00
top-level llpp: update to latest revision, uses now the ninja build system 2014-11-29 14:21:16 +01:00