Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 715a29d1c97d43e270d3b862435a9b7be76a8ae5
Ticket: 1835292fffffffffffffffffffffffffffffffff
Safe interp problems with namespaces and ensembles
User & Date: kjnash on 2012-05-31 18:57:38
Changes

  1. icomment:
    I agree that we shouldn't worry about (1), though we can lament the passing of a simpler age!
    
    (4) is more interesting.  At present, hidden commands must be in the global namespace.  At the BOF at Tcl 2009, I think it was stated that this problem is fixable.  It would be necessary to have a separate table of hidden commands for each namespace; and when a hidden command is exposed, although it could be given another name, it would have to be a name in the same namespace.
    
    IIRC, it was Kevin Kenny who had the most knowledge in this area.
    
    interp(n) states "Currently, the names of hidden commands cannot contain namespace qualifiers, and you must first rename a command in a namespace to the global namespace before you can hide it. Commands to be hidden by interp hide are looked up in the global namespace even if the current namespace is not the global one. This prevents slaves from fooling a master interpreter into hiding the wrong command, by making the current namespace be different from the global one."
    
    If anyone understands what the writer means by the final sentence, or can provide an example of this hypothetical attack, please speak up!  Until then, I'm not sure I believe this sentence.
    
    
  2. login: "kjnash"
  3. mimetype: "text/plain"
  4. username: "kjnash"