summaryrefslogtreecommitdiff
path: root/web2c
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-05-14 09:19:00 +0200
committerHans Hagen <pragma@wxs.nl>2012-05-14 09:19:00 +0200
commit70f57c08e38c62a099bf3e219da08e537ad72ced (patch)
treea417a8c8dca4d682f206911c24d21f92e3bcd1f3 /web2c
parentaf4ff2510c2a18374dec07abe1742e49dd99fc72 (diff)
downloadcontext-70f57c08e38c62a099bf3e219da08e537ad72ced.tar.gz
beta 2012.05.14 09:19
Diffstat (limited to 'web2c')
-rw-r--r--web2c/contextcnf.lua37
1 files changed, 35 insertions, 2 deletions
diff --git a/web2c/contextcnf.lua b/web2c/contextcnf.lua
index b89b7d34d..fe88bef1c 100644
--- a/web2c/contextcnf.lua
+++ b/web2c/contextcnf.lua
@@ -109,6 +109,39 @@ return {
FONTCONFIG_FILE = "fonts.conf",
FONTCONFIG_PATH = "$TEXMFSYSTEM/fonts/conf",
+ limiters = {
+ input = {
+ -- any = {
+ -- { "permit", "*" },
+ -- },
+ -- restricted = {
+ -- { "permit", "*" },
+ -- },
+ paranoid = {
+ { "permit", "^[^/]+$" },
+ { "permit", "^./" },
+ { "forbid", ".." },
+ { "tree" , "TEXMF" },
+ -- { "tree" , "MPINPUTS" },
+ -- { "tree" , "TEXINPUTS" },
+ { "forbid", "^/.." },
+ { "forbid", "^[a-c]:/.." },
+ },
+ },
+ output = {
+ -- any = {
+ -- { "permit", "*" },
+ -- },
+ -- restricted = {
+ -- { "permit", "*" },
+ -- },
+ paranoid = {
+ { "permit", "^[^/]+$" },
+ { "permit", "^./" },
+ },
+ }
+ },
+
},
-- We have a few reserved subtables. These control runtime behaviour. The
@@ -141,8 +174,8 @@ return {
-- The io modes are similar to the traditional ones. Possible values
-- are all, paranoid and restricted.
- ["system.outputmode"] = "restricted",
- ["system.inputmode"] = "any",
+ -- ["system.outputmode"] = "restricted",
+ -- ["system.inputmode"] = "any",
-- The following variable is under consideration. We do have protection
-- mechanims but it's not enabled by default.