<i>Safe interpreters can use Thread to execute unsafe commands</i> status still Open with 4 other changes
by
.
D 2010-07-13T23:35:26
J icomment >\sInteresting\spoint.\sActually\sI\scould\sask\sTcl_IsSafe(interp)\sof\sthe\n>\sinterp\sthat\screates\sthe\sthread\s(the\sone\sthat\scalls\sthread::create)\n>\sand\sinherit\sthat\sstate\sin\sthe\snew\sthread\sso\sits\sinterp\sis\salso\ssafe.\n>\sWould\sthat\smake\ssense?\n\nThat's\san\sinteresting\ssuggestion!\s\sHowever,\sfile/network\sinteraction\sis\snormally\sadded\sto\sa\ssafe\sinterpreter\seither\sby\s[interp\salias]\sor\sby\ssharing\ssockets:\sin\sboth\scases\sthe\sslave\sis\sconfigured\sby\sits\smaster\s(or\shigher\sancestor)\sin\sthe\ssame\sthread.\s\sIf\sthere\sis\sno\sunsafe\smaster,\sthe\sslave\swould\sbe\sof\slimited\svalue,\sexcept\sfor\scomputation.\n\nIf\sthe\sThread\spackage\swere\sto\sadd\snew\smechanisms\sfor\susing\ssafe\sinterpreters,\sI\sthink\sit\swould\screate\sa\slot\sof\swork\sfor\sthe\sdevelopers\sof\sthe\sThread\spackage,\sin\sparticular\sthe\sneed\sto\salways\sbe\sthinking\sabout\swhether\sThread\sfacilities\swill\sallow\sa\ssafe\sinterpreter\sto\sexecute\scommands\sin\san\sunsafe\sinterpreter\s(or,\sas\sDonal\smentioned,\sa\sdifferent\skind\sof\ssafe\sinterpreter).\n\nHowever,\ssuch\snew\smechanisms\sin\sThread\swould\snot\sadd\smuch\sbenefit,\sbecause\ssafe\sinterpreters\sare\snot\swidely\sused,\sand\susers\swill\stend\sto\suse\sthe\ssafe-interpreter\scommands\sthat\sthey\sknow,\sand\swill\sprobably\savoid\susing\sthe\snew\scapabilities\sin\sThread\sbecause\sany\sextra\scapabilities\swill\sintroduce\sadditional\scomplications\sand\ssecurity\srisks.\n\nAlso,\sas\sfar\sas\sI\sknow,\sit\sis\sunprecedented\sto\shave\sa\ssafe\sinterpreter\sas\sthe\sthe\sroot\sinterpreter\sof\sa\sthread\sor\sprocess.\s\sI\sdon't\sknow\sif\sit\swould\sbreak\sanything.\s\sIt\swould\simpact\son\sdevelopment\sof\sthe\score,\sbecause\sthe\score\sdevelopers\swould\salways\shave\sto\sconsider\sthe\spossibility\sthat\sthe\sroot\sinterpreter\smay\sbe\ssafe.\n\nI\sthink\sthe\sbest\ssolution\sis\sto\sremove\sthe\ssafe\sentry\spoint\sThread_SafeInit\scompletely.\s\sAs\sDonal\ssaid,\slet\sthe\smaster\sexpose\s(safe)\saliases\sto\soperations\sas\snecessary.\n\nKeith.\n\n
J login kjnash
J mimetype text/plain
J username kjnash
K 3027815fffffffffffffffffffffffffffffffff
U kjnash
Z d9acf4371f643518a13c33a484f970d3