From 86c67a1f112454d3906efd34f5249f3f23dd08fc Mon Sep 17 00:00:00 2001 From: Kevin Cox Date: Tue, 15 Aug 2023 07:58:42 -0400 Subject: [PATCH] nixos.photoprism: Relax sandbox to allow running exiftool exiftool is written in Perl which appears to call `chown` as part of startup. This is blocked by the `@privileged` system call group. This causes a failure when changing image orientation. Fixes: https://github.com/NixOS/nixpkgs/issues/249120 --- nixos/modules/services/web-apps/photoprism.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/photoprism.nix b/nixos/modules/services/web-apps/photoprism.nix index d5ca6014780a..423ad5375baa 100644 --- a/nixos/modules/services/web-apps/photoprism.nix +++ b/nixos/modules/services/web-apps/photoprism.nix @@ -123,7 +123,7 @@ in RestrictNamespaces = true; RestrictRealtime = true; SystemCallArchitectures = "native"; - SystemCallFilter = [ "@system-service" "~@privileged @setuid @keyring" ]; + SystemCallFilter = [ "@system-service" "~@setuid @keyring" ]; UMask = "0066"; } // lib.optionalAttrs (cfg.port < 1024) { AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ];