2020-11-16 22:23:09 +01:00
|
|
|
--- ./config/policy.xml.orig 2020-11-14 07:53:19.000000000 -0600
|
|
|
|
+++ ./config/policy.xml 2020-11-16 13:45:10.032089547 -0600
|
2020-11-01 20:22:27 +01:00
|
|
|
@@ -52,6 +52,21 @@
|
2018-05-28 21:12:29 +02:00
|
|
|
<policy domain="coder" rights="read|write" pattern="{GIF,JPEG,PNG,WEBP}" />
|
2016-06-30 22:26:57 +02:00
|
|
|
-->
|
|
|
|
<policymap>
|
|
|
|
+ <policy domain="cache" name="shared-secret" value="passphrase" stealth="true"/>
|
|
|
|
+ <!-- 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" />
|
|
|
|
+ <!-- SECURITY: prevent indirect reads: -->
|
|
|
|
+ <policy domain="path" rights="none" pattern="@*" />
|
|
|
|
+ <!-- SECURITY: prevent pipe to shell: -->
|
|
|
|
+ <policy domain="path" rights="none" pattern="|*" />
|
|
|
|
+ <!-- Some examples: -->
|
2020-11-01 20:22:27 +01:00
|
|
|
<!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
|
|
|
|
<!-- <policy domain="resource" name="memory" value="2GiB"/> -->
|
|
|
|
<!-- <policy domain="resource" name="map" value="4GiB"/> -->
|
2020-11-16 22:23:09 +01:00
|
|
|
@@ -70,7 +85,6 @@
|
|
|
|
<!-- <policy domain="path" rights="none" pattern="@*" /> -->
|
2018-05-28 21:12:29 +02:00
|
|
|
<!-- <policy domain="cache" name="memory-map" value="anonymous"/> -->
|
|
|
|
<!-- <policy domain="cache" name="synchronize" value="True"/> -->
|
|
|
|
- <!-- <policy domain="cache" name="shared-secret" value="passphrase" stealth="true"/> -->
|
2020-11-16 22:23:09 +01:00
|
|
|
<!-- <policy domain="system" name="max-memory-request" value="256MiB"/> -->
|
2020-11-01 20:22:27 +01:00
|
|
|
<!-- <policy domain="system" name="shred" value="2"/> -->
|
|
|
|
<!-- <policy domain="system" name="precision" value="6"/> -->
|