summaryrefslogtreecommitdiff
path: root/lua_scripts/pathmaps/simple/00_default.lua
diff options
context:
space:
mode:
authorLauri Aarnio <Lauri.Aarnio@iki.fi>2008-09-25 11:22:06 +0300
committerLauri Leukkunen <lle@rahina.org>2008-09-27 00:02:43 +0300
commit67c8478ed1318acb6027911a8672642e93b583af (patch)
tree857729db009dde83d529779292fe4623cb45ad63 /lua_scripts/pathmaps/simple/00_default.lua
parent41e470cdb72abdfd9a62f9240ae7e0c31b506a8c (diff)
Added interface version check to mapping rules and added default exec policies - Mapping rule files must define variable "rule_file_interface_version", and that must match what mapping.lua expects. Version mismatch is a fatal error. - A default exec policy has been added to all mapping modes that didn't have one; exec policies will mandatory quite soon..
Diffstat (limited to 'lua_scripts/pathmaps/simple/00_default.lua')
-rw-r--r--lua_scripts/pathmaps/simple/00_default.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/lua_scripts/pathmaps/simple/00_default.lua b/lua_scripts/pathmaps/simple/00_default.lua
index 6a595a5..c6a2fc2 100644
--- a/lua_scripts/pathmaps/simple/00_default.lua
+++ b/lua_scripts/pathmaps/simple/00_default.lua
@@ -1,6 +1,11 @@
-- Copyright (C) 2007 Lauri Leukkunen <lle@rahina.org>
-- Licensed under MIT license.
+-- Rule file interface version, mandatory.
+--
+rule_file_interface_version = "15"
+----------------------------------
+
tools = tools_root
if (not tools) then
tools = "/"
@@ -67,3 +72,24 @@ export_chains = {
qemu_chain,
simple_chain
}
+
+-- Exec policy rules.
+
+default_exec_policy = {
+ name = "Default"
+}
+
+-- Note that the real path (mapped path) is used when looking up rules!
+all_exec_policies_chain = {
+ next_chain = nil,
+ binary = nil,
+ rules = {
+ -- DEFAULT RULE (must exist):
+ {prefix = "/", exec_policy = default_exec_policy}
+ }
+}
+
+exec_policy_chains = {
+ all_exec_policies_chain
+}
+