2008-06-16 10:47:02 +00:00
|
|
|
# This file defines which file paths can be opened for reading and/or
|
2008-07-27 22:00:58 +00:00
|
|
|
# writing using Nasal's io.open() and parsexml() functions, as well as
|
|
|
|
# the fgcommands load, save, loadxml, and savexml. The evaluation code
|
|
|
|
# can be found in $FG_ROOT/Nasal/io.nas.
|
2008-06-16 10:47:02 +00:00
|
|
|
#
|
|
|
|
# Empty lines and lines starting with '#' are ignored. All other entries
|
|
|
|
# must be of the form
|
|
|
|
#
|
|
|
|
# {READ|WRITE} {ALLOW|DENY} <path-pattern>
|
|
|
|
#
|
|
|
|
# whereby fields must be separated by exactly one space. The pattern must
|
|
|
|
# not be quoted and may contain spaces. If a pattern starts with $FG_ROOT/
|
|
|
|
# or $FG_HOME/, then these parts are replaced by the respective system
|
|
|
|
# paths. See $FG_ROOT/Nasal/string.nas for the pattern syntax.
|
|
|
|
#
|
|
|
|
# Entries are considered from top down. If no entry matches, then file
|
|
|
|
# access is denied. A local rules file $FG_HOME/Nasal/IOrules using the
|
|
|
|
# same syntax takes precedence over this file. The default rules that
|
2008-07-03 16:23:13 +00:00
|
|
|
# apply if there's no Nasal/IOrules file at all, or there are no rules
|
|
|
|
# defined in it are equivalent to this:
|
2008-06-16 10:47:02 +00:00
|
|
|
#
|
|
|
|
# READ DENY *
|
|
|
|
# WRITE DENY *
|
|
|
|
#
|
|
|
|
# Read and write access to Nasal/IOrules files, however, is *always*
|
|
|
|
# prohibited and not configurable!
|
|
|
|
|
|
|
|
READ ALLOW $FG_ROOT/*
|
|
|
|
READ ALLOW $FG_HOME/*
|
2010-08-16 10:08:24 +00:00
|
|
|
READ ALLOW $FG_AIRCRAFT/*
|
2008-06-16 10:47:02 +00:00
|
|
|
|
2009-06-17 15:38:29 +00:00
|
|
|
WRITE ALLOW /tmp/*.xml
|
2008-07-11 16:38:51 +00:00
|
|
|
WRITE ALLOW $FG_HOME/*.sav
|
2009-02-16 15:48:02 +00:00
|
|
|
WRITE ALLOW $FG_HOME/*.log
|
2008-06-16 10:47:02 +00:00
|
|
|
WRITE ALLOW $FG_HOME/Export/*
|
2008-07-30 20:34:52 +00:00
|
|
|
WRITE ALLOW $FG_HOME/state/*.xml
|
2008-07-11 16:38:51 +00:00
|
|
|
WRITE ALLOW $FG_HOME/aircraft-data/*.xml
|