-
-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos.photoprism: Rotating images fails. #249120
Comments
The NixOS-module was developed with read-only (which is my use-case). Could you also check if uploading a picture is fixed as well? the re is another issue with this #218061 |
I have never had issues uploading pictures. |
Ah, reading that thread the reason is probably because I have disabled the DynamicUser feature so that I could give it access to my photos directory. (I am using POSIX ACLs to manage access to that). |
I think having a normal user is a better way to fix this for all permission problems. |
I don't think this issue is related to users at all. It is just the sandbox capability is too tight. I can send a PR. |
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: #249120
Describe the bug
When attempting to rotate an image in PhotoPrism the update fails.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
It succeeds.
Additional context
The root cause is that PhotoPrism calls
exiftool
which is written in Perl. Seeming as part of Perl startup it callschown
and that call fails because of theSystemCallFilter
applied to the unit.It appears that the
chown
system call is explicitly blacklisted by the~@privileged
rule. Removing this rule allows the re-orientation to succeed. Just removing that blacklist is seemingly sufficient to resolve this issue.Notify maintainers
@Stunkymonkey
Metadata
"x86_64-linux"
Linux 6.1.44, NixOS, 23.11 (Tapir), 23.11pre512984.ce5e4a6ef2e5
yes
yes
nix-env (Nix) 2.15.1
"nixos"
/nix/var/nix/profiles/per-user/root/channels/nixos
The text was updated successfully, but these errors were encountered: