Skip to content

Commit 2c2f87d

Browse files
author
Cristy
committed
block fd: filenames in security policies
1 parent 5204a16 commit 2c2f87d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

config/policy-secure.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
<policy domain="filter" rights="none" pattern="*"/>
9191
<!-- Don't read/write from/to stdin/stdout. -->
9292
<policy domain="path" rights="none" pattern="-"/>
93+
<policy domain="path" rights="none" pattern="fd:*"/>
9394
<!-- don't read sensitive paths. -->
9495
<policy domain="path" rights="none" pattern="/etc/*"/>
9596
<!-- Indirect reads are not permitted. -->

config/policy-websafe.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
<policy domain="filter" rights="none" pattern="*"/>
8787
<!-- Don't read/write from/to stdin/stdout. -->
8888
<policy domain="path" rights="none" pattern="-"/>
89+
<policy domain="path" rights="none" pattern="fd:*"/>
8990
<!-- don't read sensitive paths. -->
9091
<policy domain="path" rights="none" pattern="/etc/*"/>
9192
<!-- Indirect reads are not permitted. -->

www/security-policy.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ <h2><a class="anchor" id="example"></a>Example Security Policy</h2>
329329
&lt;policy domain="filter" rights="none" pattern="*"/>
330330
&lt;!-- Don't read/write from/to stdin/stdout. -->
331331
&lt;policy domain="path" rights="none" pattern="-"/>
332+
&lt;policy domain="path" rights="none" pattern="fd:*"/>
332333
&lt;!-- don't read sensitive paths. -->
333334
&lt;policy domain="path" rights="none" pattern="/etc/*"/>
334335
&lt;!-- Indirect reads are not permitted. -->

0 commit comments

Comments
 (0)