Skip to content

Commit 64d183b

Browse files
author
User
committed
fix(enclave-setup): load vsock core before nitro_enclaves — prevents ENODEV on AF_VSOCK connect
1 parent a59263a commit 64d183b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

enclave-setup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ else
117117
fi
118118
fi
119119

120+
# Load vsock core first — nitro_enclaves registers its vsock transport against it.
121+
# Without vsock loaded before the enclave starts, AF_VSOCK connect() returns ENODEV.
122+
modprobe vsock 2>/dev/null || true
120123
modprobe nitro_enclaves 2>/dev/null || true
121-
modprobe vhost_vsock 2>/dev/null || true
122124

123125
# Create the enclave sockets directory early — describe-enclaves needs it.
124126
# 755 so non-root users (ubuntu) can list enclaves without sudo.

0 commit comments

Comments
 (0)