| Ticket UUID: | 599306 | |||
| Title: | master index exposes unsupported pkgs | |||
| Type: | Bug | Version: | None | |
| Submitter: | dgp | Created on: | 2002-08-23 16:14:09 | |
| Subsystem: | None | Assigned To: | andreas_kupries | |
| Priority: | 8 | Severity: | ||
| Status: | Closed | Last Modified: | 2003-04-22 02:26:50 | |
| Resolution: | Fixed | Closed By: | andreas_kupries | |
| Closed on: | 2003-04-21 19:26:50 | |||
| Description: |
dgp
Uh, oh. The "master" pkgIndex.tcl file for tcllib
bypasses sanity checks.
dgp
Can't think it through now; will report as a bug.
aku
What checks are bypassed ? Or do you mean its mere
presence bypasses some checks in the safe stuff ?
schlenk
The pkgIndex.tcl file in tcllib1.3 main directory can
load packages that can not be loaded directly, so it
bypasses access restrictions.
dgp
I mean because it offers [package ifneeded] scripts for
packages, the actual indexes for those packages lose
any control they have.
dgp
take a look at the pkgIndex.tcl for control
steveo saunters in.
dgp
if {![package vsatisfies [package provide Tcl] 8.2]}
{return}
package ifneeded control 0.1.1 [list source [file join
$dir control.tcl]]
* suchenwi goes home - a great weekend to y'all!
dgp
It's coded that way to prevent any attempts to load
control 0.1.1 into a pre-Tcl-8.2 interp.
dgp
But the tcllib pkgIndex.tcl is giving away the secret.
suchenwi macht wie eine Banane ...
dgp
I know this was a big problem when prepping the 1.3
release.
dgp
...but this wasn't the right solution.
schlenk
So we have more than one bug: 1. bad pkgIndex.tcl for
tcllib, that bypasses sanity checks 2. bad security
checks, that allow loading of packages, that should not
be loadable in a safe interp
aku
Yeah, I see.
schlenk
3. Inconvenient access for safe interp to tcllib modules.
aku
The alternative is to source all subordinate package
indices directly, no ?
aku
... Or maybe inlining them into the main package index. ...
dgp
I can't devote the time and attention required to come
up with the right solution right now.
dgp
I recall from the previous discussion that just about
every alternative has problems.
| |||
| User Comments: |
andreas_kupries added on 2003-04-22 02:26:50:
Logged In: YES user_id=75003 Done. The new all-tcl installer handles this now correctly. See devdoc/indexing.txt for discussion of options and chosen solution. dgp added on 2003-04-12 04:55:38: Logged In: YES user_id=80530 I believe we can correct this problem with a substantial revision to mkIndex.tcl. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki