talk, chat: disables scry in hoon eval

We don't care about the static types in the use-cases where we need to
prevent scry (to prevent accidental data disclosure). We can evaluate
the expression, virtualized and untyped, and then just clam.
This commit is contained in:
Joe Bryan 2019-09-06 23:24:00 -07:00 committed by Jared Tobin
parent d461ec40b0
commit f5263e0395
No known key found for this signature in database
GPG Key ID: 0E4647D58F8A69E4
2 changed files with 24 additions and 5 deletions

View File

@ -1331,10 +1331,19 @@
:: executes {exe} and sends both its code and
:: result.
::
|= {txt/cord exe/hoon}
=> |.([(sell (slap (slop hoon-head seed) exe))]~)
=+ tan=p:(mule .)
(say [%exp txt tan] ~)
|= [txt=cord exe=hoon]
:: XX revisit
::
:: this double-virtualizes and clams to disable .^
::
=; tan=(list tank)
(say [%exp txt tan] ~)
;; (list tank)
=< +>
%+ mong
:- mute
|.([(sell (slap (slop hoon-head seed) exe))]~)
|=(^ ~)
::
++ target
:: %target

View File

@ -577,7 +577,17 @@
:+ ~ u.exp
=+ res=((ot res+(ar dank) ~) a)
?^ res u.res
p:(mule |.([(sell (slap !>(..^zuse) (ream u.exp)))]~)) ::TODO oldz
:: XX revisit
::
:: this double-virtualizes and clams to disable .^
:: the subject of the eval should include [our now eny]
::
;; (list tank)
=< +>
%+ mong
:- mute
|.([(sell (slap !>(..^zuse) (ream u.exp)))]~)
|=(^ ~)
::
++ atta ::: attache
^- $-(json (unit attache))