Skip to content

Commit

Permalink
NixOS VM tests: Don't create a setgid group in vde_switch
Browse files Browse the repository at this point in the history
Nix no longer allows this for security reasons.

http://hydra.nixos.org/build/53993125
(cherry picked from commit 0996ea8)
  • Loading branch information
edolstra committed Jun 7, 2017
1 parent 2bbe0b0 commit 7648f52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nixos/lib/test-driver/test-driver.pl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
if ($pid == 0) {
dup2(fileno($pty->slave), 0);
dup2(fileno($stdoutW), 1);
exec "vde_switch -s $socket" or _exit(1);
exec "vde_switch -s $socket --dirmode 0700" or _exit(1);
}
close $stdoutW;
print $pty "version\n";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/build-support/vm/windows/controller/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ let
MONITOR_SOCKET="$(pwd)/monitor"
WINVM_PIDFILE="$(pwd)/winvm.pid"
CTRLVM_PIDFILE="$(pwd)/ctrlvm.pid"
${vde2}/bin/vde_switch -s "$QEMU_VDE_SOCKET" &
${vde2}/bin/vde_switch -s "$QEMU_VDE_SOCKET" --dirmode 0700 &
echo 'alive?' | ${socat}/bin/socat - \
UNIX-CONNECT:$QEMU_VDE_SOCKET/ctl,retry=20
'';
Expand Down

0 comments on commit 7648f52

Please sign in to comment.