arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1807.09377cs.PL
收藏

Racets:球拍中的分面执行

Racets: Faceted Execution in Racket

Kristopher Micinski, Zhanpeng Wang, Thomas Gilray

摘要:

刻面执行是一种动态信息流控制的语言范式。在分面执行下,安全的程序数据由分面值表示:决策树编码数据应该如何显示给其所有者(由标签表示)而不是其他所有人。当标签被允许是一流的(即,在运行时决定要揭示哪些数据的谓词),分面执行支持策略不可知编程:一种编程风格,允许独立于对该数据进行计算的代码来强制执行数据的隐私策略。到目前为止,分面执行的实现是相对重量级的:需要改变语言运行时或应用程序代码(例如,使用monad)。按照Racket的语言作为库的方法,我们提出了Racets:作为宏库的分面执行的实现。鉴于Racket的高表达性的宏系统,我们的实现遵循相对直接的分面执行的语义。为了演示Racets如何用于策略无关的编程,我们使用它来构建一个基于Web的战舰游戏。我们的实现揭示了在与没有分面执行的代码进行交互时的几个有趣问题。我们的Racets实现是开源的,正在开发中,可在线获得。

英文摘要:

Faceted Execution is a linguistic paradigm for dynamic information-flow control. Under faceted execution, secure program data is represented by faceted values: decision trees that encode how the data should appear to its owner (represented by a label) versus everyone else. When labels are allowed to be first-class (i.e., predicates that decide at runtime which data to reveal), faceted execution enables policy-agnostic programming: a programming style that allows privacy policies for data to be enforced independently of code that computes on that data. To date, implementations of faceted execution are relatively heavyweight: requiring either changing the language runtime or the application code (e.g., by using monads). Following Racket's languages-as-libraries approach, we present Racets: an implementation of faceted execution as a library of macros. Given Racket's highly-expressive macro system, our implementation follows relatively directly from the semantics of faceted execution. To demonstrate how Racets can be used for policy-agnostic programming, we use it to build a web-based game of Battleship. Our implementation sheds light on several interesting issues in interacting with code written without faceted execution. Our Racets implementation is open source, under development, and available online.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑