Overview
| Artifact ID: | 8c87f4589da2f203da77f9da6a249a3211196aa7 |
|---|---|
| Ticket: | 1999119fffffffffffffffffffffffffffffffff
Safe base does not handle the new TM module mechanism |
| User & Date: | andreas_kupries on 2008-06-25 01:17:05 |
Changes
- icomment:
Logged In: YES user_id=75003 Originator: NO First notes, collected during first investigative sweep. - The tcl::tm::UnknownHandler is not activated for safe interps (init.tcl, line 157ff). - Activation of the tcl::tm::UnknownHandler shows that it uses a series commands deemed unsafe (file normalize, file exists, glob). (**) - The problems with the first two are readily fixed, simply do not use them in a safe interp. Not sure if that is without repercussions, especially with regard to the normalize. - Usage of 'glob' however is essential. In the regular package mechanism not having it only kills the search in subdirectories of the auto_path. We can still directly source pkgIndex.tcl in directories, and catch problems. For Tcl Modules we do not have a fixed name. We have to search, i.e. glob. to fix this the safe base has to be extended with a 'safe glob' command, i.e. a restricted form of glob which can look only at the paths registered with the safe base. Or something like that. (**) Used proc ::log {args} { puts $args } safe::setLogCmd ::log to get debugging information out of the safe base. - login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"