1 # This file defines which file paths can be opened for reading and/or
2 # writing using Nasal's io.open() and parsexml() functions, as well as
3 # the fgcommands load, save, loadxml, and savexml. The evaluation code
4 # can be found in $FG_ROOT/Nasal/io.nas.
6 # Empty lines and lines starting with '#' are ignored. All other entries
9 # {READ|WRITE} {ALLOW|DENY} <path-pattern>
11 # whereby fields must be separated by exactly one space. The pattern must
12 # not be quoted and may contain spaces. If a pattern starts with $FG_ROOT/
13 # or $FG_HOME/, then these parts are replaced by the respective system
14 # paths. See $FG_ROOT/Nasal/string.nas for the pattern syntax.
16 # Entries are considered from top down. If no entry matches, then file
17 # access is denied. A local rules file $FG_HOME/Nasal/IOrules using the
18 # same syntax takes precedence over this file. The default rules that
19 # apply if there's no Nasal/IOrules file at all, or there are no rules
20 # defined in it are equivalent to this:
25 # Read and write access to Nasal/IOrules files, however, is *always*
26 # prohibited and not configurable!
30 READ ALLOW $FG_AIRCRAFT/*
31 READ ALLOW $FG_SCENERY/*
33 WRITE ALLOW /tmp/*.xml
34 WRITE ALLOW $FG_HOME/*.sav
35 WRITE ALLOW $FG_HOME/*.log
36 WRITE ALLOW $FG_HOME/cache/*
37 WRITE ALLOW $FG_HOME/Export/*
38 WRITE ALLOW $FG_HOME/state/*.xml
39 WRITE ALLOW $FG_HOME/aircraft-data/*.xml
40 WRITE ALLOW $FG_HOME/Wildfire/*.xml
41 WRITE ALLOW $FG_HOME/runtime-jetways/*.xml
42 WRITE ALLOW $FG_HOME/Input/Joysticks/*.xml