Skip to content

Commit

Permalink
fix(gramine): maybe fix problem with golang netpollBreak
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
haraldh committed Aug 8, 2024
1 parent be2c195 commit 7eb96be
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/gramine/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, lib
, nixsgx
, fetchurl
, fetchpatch
, bash
, meson
, nasm
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7eb96be

Please sign in to comment.