git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/virtualbox: Disable hardening for now.

This should display a big fat warning that people can hardly miss until we have fixed the issues with the host-only-interfaces that persist when hardining is enabled. Signed-off-by: aszlig <aszlig@redmoonstudios.org>

commit5d67b17901ff2c9a18647bd9453c6b0d4294b875 authoraszlig <aszlig@redmoonstudios.org> dateMon 15 Dec 2014, 18:50 (12 years ago) parentd9ce3ae
1 file changed+8−1
nixos/modules/programs/virtualbox-host.nix+8−1
nixos/modules/programs/virtualbox-host.nix+8−1
@@ -35,7 +35,7 @@ in
3535
3636 enableHardening = mkOption {
3737 type = types.bool;
38− default = true;
38+ default = false;
3939 description = ''
4040 Enable hardened VirtualBox, which ensures that only the binaries in the
4141 system path get access to the devices exposed by the kernel modules
@@ -54,6 +54,13 @@ in
5454 boot.extraModulePackages = [ virtualbox ];
5555 environment.systemPackages = [ virtualbox ];
5656
57+ warnings = singleton (
58+ "Hardening is currently disabled for VirtualBox, because of some " +
59+ "issues in conjunction with host-only-interfaces. If you don't use " +
60+ "hostonlyifs, it's strongly recommended to set " +
61+ "`services.virtualboxHost.enableHardening = true'!"
62+ );
63+
5764 security.setuidOwners = let
5865 mkVboxStub = program: {
5966 inherit program;