summaryrefslogtreecommitdiffstats
path: root/patches/source/imagemagick/policy.xml.diff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/source/imagemagick/policy.xml.diff')
-rw-r--r--patches/source/imagemagick/policy.xml.diff26
1 files changed, 26 insertions, 0 deletions
diff --git a/patches/source/imagemagick/policy.xml.diff b/patches/source/imagemagick/policy.xml.diff
new file mode 100644
index 00000000..dd5ebc52
--- /dev/null
+++ b/patches/source/imagemagick/policy.xml.diff
@@ -0,0 +1,26 @@
+--- ./config/policy.xml.orig 2013-01-14 07:57:39.000000000 -0600
++++ ./config/policy.xml 2016-05-10 16:01:48.603227954 -0500
+@@ -45,6 +45,17 @@
+ exceeds policy maximum so memory limit is 1GB).
+ -->
+ <policymap>
++ <policy domain="cache" name="shared-secret" value="passphrase"/>
++ <!-- SECURITY: disable potentially insecure coders: -->
++ <policy domain="coder" rights="none" pattern="EPHEMERAL" />
++ <policy domain="coder" rights="none" pattern="HTTPS" />
++ <policy domain="coder" rights="none" pattern="MVG" />
++ <policy domain="coder" rights="none" pattern="MSL" />
++ <policy domain="coder" rights="none" pattern="TEXT" />
++ <policy domain="coder" rights="none" pattern="SHOW" />
++ <policy domain="coder" rights="none" pattern="WIN" />
++ <policy domain="coder" rights="none" pattern="PLT" />
++ <!-- Some examples: -->
+ <!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
+ <!-- <policy domain="resource" name="memory" value="2GiB"/> -->
+ <!-- <policy domain="resource" name="map" value="4GiB"/> -->
+@@ -55,5 +66,4 @@
+ <!-- <policy domain="resource" name="throttle" value="0"/> -->
+ <!-- <policy domain="resource" name="time" value="3600"/> -->
+ <!-- <policy domain="system" name="precision" value="6"/> -->
+- <policy domain="cache" name="shared-secret" value="passphrase"/>
+ </policymap>