nixpkgs/nixos/modules
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
..
config Merge branch 'master' into staging 2014-11-10 10:03:52 +01:00
hardware nvidia_x11: current long-lived becomes a new legacy 2014-11-24 22:39:00 +01:00
installer nixos: Rename virtualbox to virtualboxGuest. 2014-11-27 18:42:22 +01:00
misc nixos/kubernetes: fix user id 2014-11-29 16:46:39 +01:00
profiles jfsrec: Remove derivation 2014-11-02 17:22:27 -08:00
programs virtualbox: Enable hardening by default. 2014-11-29 19:21:46 +01:00
security Merge pull request #5130 from wmertens/git-ssl-env 2014-11-27 13:24:08 +01:00
services nixos: Use vendor zones instead of N.pool.ntp.org. 2014-11-28 19:37:03 +01:00
system stage-1: fix hibernation for device node symlinks 2014-11-15 21:44:37 +02:00
tasks nixos: Add system-wide option to set the hostid 2014-11-12 22:31:49 +01:00
testing nixos: Fix priorities of initialHashedPassword. 2014-11-04 05:19:07 +01:00
virtualisation nixos: add kubernetes module 2014-11-29 02:27:17 +01:00
module-list.nix nixos: add kubernetes module 2014-11-29 02:27:17 +01:00
rename.nix nixos: Rename virtualbox to virtualboxGuest. 2014-11-27 18:42:22 +01:00