Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Can't expose file command in safe interp

Closed / Fixed3211758fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 15 years ago
Descriptionplain2011-03-14 17:52:56
Using ActiveTcl 8.6b5 on Ubuntu Linux

I'm having the following problem: 
% set i [interp create -safe] 
interp0 
% interp expose $i file 
::tcl::mathfunc::maxunknown hidden command "file" 
%
hobbsplain2011-03-16 00:02:43
This regression needs addressing before 8.6 final.
dkfplain2011-03-16 18:39:23
[file] is exposed, but its unsafe subcommands fail.
dgp Ticket [3211758fff]: 1 change [History diff]2011-09-24 02:36:59
dkfplain2011-09-26 17:49:13
allow_comments - 1

I've made [file] be hidden in safe interpreters, but I don't think it's a very good idea all the same. The change to having it be an ensemble changes the way you are best advised to write a security policy (i.e., [file] should be there, but only with safe operations in it).
Log in (anonymous is fine) to add a comment.