Overview
| Artifact ID: | fdda9ffe3fc6d88a0080d1379139ab0beb2b2fa7 |
|---|---|
| Ticket: | 2964715fffffffffffffffffffffffffffffffff
Problems with Safe Base exposed glob command |
| User & Date: | dkf on 2014-09-14 16:39:52 |
Changes
- closer changed to: "nobody"
- 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.
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "6"
- severity changed to: "Minor"