mirror of
https://github.com/matter-labs/nixsgx.git
synced 2025-07-21 07:33:55 +02:00
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:
parent
be2c19592d
commit
7eb96bec6a
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue