* Melchior FRANZ -- Monday 16 June 2008:
> I've locked the system further down.

    var read_rules = [
        [root ~ "/*", 1],
        [home ~ "/*", 1],
    ];

    var write_rules = [
        [home ~ "/Scenery/*.stg", 1],
        [home ~ "/Export/*", 1],
    ];

The 1 means "ALLOW", whereas 0 would mean "DENY". You probably
know that from other configuration files. That way you can say,
for example:

        [root ~ "/*.nas", 0],
        [root ~ "/*", 1],

to allow all files under $FG_ROOT, except *.nas files. (That's
assuming that there aren't any bugs in string.match and
string.fixpath, etc.  ;-)

m.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to