Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d54064962da267e37e1f559e7926efa15e272f92
Ticket: 2964715fffffffffffffffffffffffffffffffff
Problems with Safe Base exposed glob command
User & Date: kjnash on 2010-03-06 13:29:05
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Version core-8-5-branch v 1.16.4.6
    Using ActiveTcl 8.5.8.1
    
    The command ::safe::AliasGlob has several problems.
    - [glob *] reveals the contents of [pwd].
    - The call from ::tcl::tm::UnknownHandler (to search ::tcl::tm module directories) fails.
    - Its test for calls from tclPkgUnknown is ineffective.
    - Its error messages are unhelpful.
    
    A patch to the core-8-5-branch v 1.16.4.6 is attached.
    
    # Description of alterations to ::safe::AliasGlob from core-8-5-branch v 1.16.4.6
    #
    # (1) - add a comment header
    # (2) - change test for "pkgIndex.tcl" and move it so that it is effective
    # (3) - give a meaningful error message if pkgIndex.tcl is detected
    # (4) - give a meaningful error message if -directory is used twice
    # (5) - supply a value for dir in cmd
    # (6) - require option -directory
    #       - This is a change to the (undocumented) behaviour of the exposed glob
    #         command.
    #       - The change is compatible with the required use cases for tm.tcl and
    #         (if the pkgIndex.tcl test is removed in future) package.tcl.
    #       - It is a good fit to the Safe Base idea that operations are permitted
    #         only in certain directories.
    
    Closed Bug 2906841 is related.
    
    
  4. foundin changed to: "obsolete: 8.5.8"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "kjnash"
  10. subsystem changed to: "33. Safe Base"
  11. title changed to: "Problems with Safe Base exposed glob command"
  12. type changed to: "Bug"