fix(gramine): maybe fix problem with golang netpollBreak

Old golang uses pipes for netpoll. And occasionally -EACCES was seen
with golang `netpollBreak` writing to a non-blocking pipe.

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2024-08-08 14:16:20 +02:00
parent be2c19592d
commit 7eb96bec6a
Signed by: harald
GPG key ID: F519A1143B3FBE32

View file

@ -2,6 +2,7 @@
, lib
, nixsgx
, fetchurl
, fetchpatch
, bash
, meson
, nasm
@ -69,6 +70,14 @@ python.pkgs.buildPythonPackage {
fetchSubmodules = true;
};
patches = [
# Add locking around read/write on encrypted pipes
(fetchpatch {
url = "https://github.com/gramineproject/gramine/commit/cd68a460abf9db2295f5dc5cf292b8678741fb22.patch";
hash = "sha256-KRgcFiZWCOz1x8O0cgL7aZ1xG9bdZDPwRKSgqOWJ2nQ=";
})
];
outputs = [ "out" "dev" ];
# Unpack subproject sources