Author: eelco
Date: Mon May 2 14:55:16 2011
New Revision: 27095
URL: https://svn.nixos.org/websvn/nix/?rev=27095&sc=1
Log:
* For some reason Samba insists on setting the g+w bit on newly
created directories, which is a security risk. So create $out with
the proper permissions before starting the VM.
Modified:
nixpkgs/trunk/pkgs/build-support/vm/default.nix
Modified: nixpkgs/trunk/pkgs/build-support/vm/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/build-support/vm/default.nix Mon May 2 12:21:34
2011 (r27094)
+++ nixpkgs/trunk/pkgs/build-support/vm/default.nix Mon May 2 14:55:16
2011 (r27095)
@@ -274,6 +274,8 @@
${qemuCommand}
EOF
+ mkdir -p -m 0700 $out
+
chmod +x ./run-vm
source ./run-vm
@@ -602,7 +604,7 @@
installPhase = ''
eval "$preInstall"
-
+
ensureDir $out/$outDir
find $rpmout -name "*.rpm" -exec cp {} $out/$outDir \;
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits