summaryrefslogtreecommitdiff
path: root/web2c
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-05-14 10:40:15 +0300
committerMarius <mariausol@gmail.com>2012-05-14 10:40:15 +0300
commit86301645de1fc594ca94a2a722fce813c16966b1 (patch)
treec8723188d4d356086f97a40e36499ce883711b37 /web2c
parent8d448442950011295b60f1ea7385887e043388e9 (diff)
downloadcontext-86301645de1fc594ca94a2a722fce813c16966b1.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.