Re: indice con documentclass memoir

#89731
OldClaudio
Partecipante
    Up
    0
    Down
    ::


    Il file texmf/dist/web2c/texmf.cnf contiene l’elenco dei file la cui esecuzione tramite \write18 è protetta; fra questi, l’ultima volta che l’ho letto, xindi non c’era, ma evidentemente non leggo quel file di configurazione come se fosse un breviario per recitare le laudi ogni giorno… (*)
    Se però hai configurato il tuo shell editor affinché esegua sempre pdflatex in modalità NON PROTETTA, avendo specificato -shell-escape fra le opzioni che lo shell editor invia al sistema operativo per comporre il documento, oppure se lanci il comando di composizione dal terminale specificando l’opzione -shell-escape, allora pdflatex lavora in modalità non protetta ed esegue qualunque programma e qualunque coando del sitema operativo, con il rischio di fare danni ingenti se c’è qualche errore nella stirnga che vien inviata al sistema operativo.
    Lo so che ti usi xindy e che configuri imakeindx con la specificazione truexindy (che permette di lanciare davvero xindy, e non texindy che è uno script che lancia xindy con una serie di opzioni precostituita); ma che tu usi truexindy(=xindy) o texindy, il risultato è che non è una esecuzione protetta.

    (*) Ora ho parto il file di configurazione predefinta in web2c/ e verso la riga 561 c’è l’elenco dei programmi la cui esecuzione è lecita senza bisogno di specificare l’opzione -shell-escape: ricopio:`% The programs listed here are as safe as any we know: they either do
    % not write any output files, respect openout_any, or have hard-coded
    % restrictions similar or higher to openout_any=p. They also have no
    % features to invoke arbitrary other programs, and no known exploitable
    % bugs. All to the best of our knowledge. They also have practical use
    % for being called from TeX.
    %
    shell_escape_commands = \
    bibtex,bibtex8,\
    kpsewhich,\
    makeindex,\
    mpost,\
    repstopdf,\

    % we'd like to allow:
    % dvips – but external commands can be executed, need at least -R1.
    % epspdf, ps2pdf, pstopdf – need to respect openout_any,
    % and gs -dSAFER must be used and check for shell injection with filenames.
    % (img)convert (ImageMagick) – delegates.mgk possible misconfig, besides,
    % without Unix convert it hardly seems worth it, and Windows convert
    % is something completely different that destroys filesystems, so skip.
    % pygmentize – but is the filter feature insecure?
    % ps4pdf – but it calls an unrestricted latex.
    % rpdfcrop – maybe ok, but let's get experience with repstopdf first.
    % texindy,xindy – but is the module feature insecure?
    % ulqda – but requires optional SHA1.pm, so why bother.
    % tex, latex, etc. – need to forbid –shell-escape, and inherit openout_any.
    `Come vedi nessuna variante di xindy è eseguibile in modalità protetta ed è necessario specificare l’opzione -shell-escape per poterlo fare dall’interno di pdflatex.

    Ciao
    Claudio

    Go to top