Skip to content

Commit 7648f52

Browse files
committedJun 7, 2017
NixOS VM tests: Don't create a setgid group in vde_switch
Nix no longer allows this for security reasons. http://hydra.nixos.org/build/53993125 (cherry picked from commit 0996ea8)
1 parent 2bbe0b0 commit 7648f52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎nixos/lib/test-driver/test-driver.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
if ($pid == 0) {
3636
dup2(fileno($pty->slave), 0);
3737
dup2(fileno($stdoutW), 1);
38-
exec "vde_switch -s $socket" or _exit(1);
38+
exec "vde_switch -s $socket --dirmode 0700" or _exit(1);
3939
}
4040
close $stdoutW;
4141
print $pty "version\n";

‎pkgs/build-support/vm/windows/controller/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ let
185185
MONITOR_SOCKET="$(pwd)/monitor"
186186
WINVM_PIDFILE="$(pwd)/winvm.pid"
187187
CTRLVM_PIDFILE="$(pwd)/ctrlvm.pid"
188-
${vde2}/bin/vde_switch -s "$QEMU_VDE_SOCKET" &
188+
${vde2}/bin/vde_switch -s "$QEMU_VDE_SOCKET" --dirmode 0700 &
189189
echo 'alive?' | ${socat}/bin/socat - \
190190
UNIX-CONNECT:$QEMU_VDE_SOCKET/ctl,retry=20
191191
'';

0 commit comments

Comments
 (0)
Please sign in to comment.