[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#227203: tetex-bin could hint at dvips secure mode



Andreas Mohr <andi@rhlx01.fht-esslingen.de> schrieb:

> Thus it'd would probably be a good idea to remind people in
> /usr/share/doc/tetex-bin/README.Debian.gz that devips
> "secure mode" is enabled and the fact that you should
> configure it in /etc/texmf/dvips/config.ps (the "z" parameter).
> Also config.ps doesn't explicitly mention the words "secure mode" either...

Is "secure mode" really the "official" wording for this? Anyway, we
could apply the following patch (I put it right at the top of
README.Debian, because it's short and new):

--- tetex-bin-2.0.2/debian/README.Debian.orig	Mon Jan 12 09:34:30 2004
+++ tetex-bin-2.0.2/debian/README.Debian	Mon Jan 12 09:36:21 2004
@@ -3,6 +3,14 @@
 
 TeX binaries built from teTeX-src-*.tar.gz
 
+Note on dvips:
+=============
+
+Per default, dvips is in secure mode and won't execute shell commands
+in \special commands, like backticks in \DeclareGraphicsRule etc. To
+enable this, change "z1" zu "z0" in /etc/texmf/dvips/config.ps (second
+entry).
+
 Note on update-texmf:
 ====================
 - to customize texmf.cnf, create an appropriate file (or files) in 
--- tetex-base-2.0.2/texmf/dvips/config/config.ps.orig	Mon Jan 12 09:33:21 2004
+++ tetex-base-2.0.2/texmf/dvips/config/config.ps	Mon Jan 12 09:32:26 2004
@@ -7,8 +7,8 @@
 % to determine this number. (It will be the only thing printed.)
 m 3500000
 
-% Execution of external programs is disabled by default. Set
-% to z0 if you want backticks in \special commands enabled.
+% Execution of external programs is disabled by default ("secure mode").
+% Set to z0 if you want backticks in \special commands enabled.
 z1
 
 % How to print, maybe with lp instead lpr, etc. If commented-out, output


Bye, Frank
-- 
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie




Reply to: