Skip to content

Instantly share code, notes, and snippets.

@YuheiNakasaka
Created October 17, 2018 05:27
Show Gist options
  • Save YuheiNakasaka/96c67d1f406aba54c6e31ca41e23e7c5 to your computer and use it in GitHub Desktop.
Save YuheiNakasaka/96c67d1f406aba54c6e31ca41e23e7c5 to your computer and use it in GitHub Desktop.
policy.xml of ImageMagick in AWS Lambda
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policymap [
<!ELEMENT policymap (policy)+>
<!ELEMENT policy (#PCDATA)>
<!ATTLIST policy domain (delegate|coder|filter|path|resource) #IMPLIED>
<!ATTLIST policy name CDATA #IMPLIED>
<!ATTLIST policy rights CDATA #IMPLIED>
<!ATTLIST policy pattern CDATA #IMPLIED>
<!ATTLIST policy value CDATA #IMPLIED>
]>
<policymap>
<policy domain="coder" rights="none" pattern="EPHEMERAL" />
<policy domain="coder" rights="none" pattern="HTTPS" />
<policy domain="coder" rights="none" pattern="HTTP" />
<policy domain="coder" rights="none" pattern="URL" />
<policy domain="coder" rights="none" pattern="FTP" />
<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="LABEL" />
<policy domain="path" rights="none" pattern="@*" />
</policymap>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment