arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1305.2553cs.OScs.CR
收藏

多线程应用中的实用细粒度内存分离

Practical Fine-grained Privilege Separation in Multithreaded Applications

Jun Wang, Xi Xiong, Peng Liu

摘要:

经典多线程编程模型的一个固有安全限制是,所有线程共享相同的地址空间,因此被隐式地假定为相互信任。然而,这种假设没有考虑到许多现代多线程应用程序,这些应用程序涉及多个彼此不完全信任的主体。如何改进经典的多线程编程模型以解决多主体应用程序中的安全性和权限分离问题仍然是一个挑战。本文提出了ARBITER,一个运行时系统和一组安全原语,旨在细粒度和以数据为中心的多线程应用程序的权限分离。在主体之间实施有效隔离的同时,ARBITER仍然允许线程之间的灵活共享和通信,以便可以保留多线程编程范式。为了以细粒度的方式实现受控共享,我们创建了一个名为ARBITER安全内存段(ASMS)的新抽象和相应的操作系统支持。程序员通过ARBITER的API按照统一的模型标记数据和主体来表达安全策略。我们将一个广泛使用的内存数据库应用程序(memcached)移植到ARBITER系统中,仅更改了大约100个字节。实验结果表明,只有5.6%的平均运行时开销是由这个安全增强版本的应用程序。

英文摘要:

An inherent security limitation with the classic multithreaded programming model is that all the threads share the same address space and, therefore, are implicitly assumed to be mutually trusted. This assumption, however, does not take into consideration of many modern multithreaded applications that involve multiple principals which do not fully trust each other. It remains challenging to retrofit the classic multithreaded programming model so that the security and privilege separation in multi-principal applications can be resolved. This paper proposes ARBITER, a run-time system and a set of security primitives, aimed at fine-grained and data-centric privilege separation in multithreaded applications. While enforcing effective isolation among principals, ARBITER still allows flexible sharing and communication between threads so that the multithreaded programming paradigm can be preserved. To realize controlled sharing in a fine-grained manner, we created a novel abstraction named ARBITER Secure Memory Segment (ASMS) and corresponding OS support. Programmers express security policies by labeling data and principals via ARBITER's API following a unified model. We ported a widely-used, in-memory database application (memcached) to ARBITER system, changing only around 100 LOC. Experiments indicate that only an average runtime overhead of 5.6% is induced to this security enhanced version of application.

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

↑