nixos/paperless: Allow mbind syscall in paperless-web.services

After uploading a document through the webinterface I started seeing
it killed through the SYSBUS signal. Inspecting the call trace led me to
liblapack's memory allocator, that uses the mbind syscall on Linux.
This commit is contained in:
Martin Weinelt 2022-09-04 13:46:35 +02:00
parent 8da59ca2a2
commit 94f00041f0
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -287,8 +287,8 @@ in
AmbientCapabilities = "CAP_NET_BIND_SERVICE";
CapabilityBoundingSet = "CAP_NET_BIND_SERVICE";
# gunicorn needs setuid
SystemCallFilter = defaultServiceConfig.SystemCallFilter ++ [ "@setuid" ];
# gunicorn needs setuid, liblapack needs mbind
SystemCallFilter = defaultServiceConfig.SystemCallFilter ++ [ "@setuid mbind" ];
# Needs to serve web page
PrivateNetwork = false;
};