Limit ImageMagick read/write access to a particular directory #112
Unanswered
BlackBeardie
asked this question in
Q&A
Replies: 2 comments 4 replies
-
You should be able to deny all paths with a policy that has an access rights of none and a wildcard path of '*'. You can then allow a particular path by following the deny policy with a allow policy, that is rights are enabled and a particular path is enabled. Try it. If you run into any problems, let us know. |
Beta Was this translation helpful? Give feedback.
1 reply
-
This works for us:
returns
whereas this command writes and reads the image without complaint:
If that doesn't work for you, you may have an older version of ImageMagick that does not support policy ordering. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello good people!
I am using the default installation of ImageMagick-6 that ships with Ubuntu 18.04.
Using the policy.xml file, is there a way to limit read/write by ImageMagick to a directory of my choosing?
This policy line blocks all access if enabled and grants access to all directories if disabled by remming it out.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions