fix(vault): maybe fix netpollBreak issues

- Updated the flake.lock for nixsgx dependency with new revision to get a patched gramine
  https://github.com/matter-labs/nixsgx/pull/54

- Enabled `sys.insecure__allow_eventfd` to support recent golang changes in the `netpoll` implementation
This commit is contained in:
Harald Hoyer 2024-08-08 14:51:04 +02:00
parent 49fb234d2a
commit 33fe7f17fa
Signed by: harald
GPG key ID: F519A1143B3FBE32
2 changed files with 8 additions and 3 deletions

View file

@ -84,6 +84,11 @@ nixsgxLib.mkSGXContainer {
sys.stack.size = "16M";
# vault needs flock
sys.experimental__enable_flock = true;
# recent golang switched to eventfd for netpoll
# https://github.com/golang/go/commit/d068c2cb620c1daeedc8b9cce488af45a6c2c889
# enable it to mitigate surprises for golang >= 1.23
sys.insecure__allow_eventfd = true;
};
}