发明名称 System and method for dynamic optimizations using security assertions
摘要 The invention relates to a system and method for efficient security runtime. If the same security demand for permissions occurs twice during the same code path (i.e. execution stack) the latter can be automatically turned (optimized) into a security assertion based on the former demand. A security runtime can determine which assertions to establish in a call stack, using declarative security information kept in an assembly metadata and based on execution history to know what has already been demanded for a specific stack frame. If the method being called has been allowed to execute before then a demand may be replaced with an assertion for the same permissions within the call stack. If that frame was executed then it means the security demand was successfully evaluated. Furthermore, if the permission evaluation result is known to be static (e.g., its result will not change) it can be determined that another check on the same permissions is not required higher on the stack, so this demand can safely be replaced by an assertion, which can effectively speed up the code execution without sacrificing security.
申请公布号 US7739735(B2) 申请公布日期 2010.06.15
申请号 US20060493010 申请日期 2006.07.26
申请人 NOVELL, INC. 发明人 POULIOT SEBASTIEN
分类号 G06F21/00 主分类号 G06F21/00
代理机构 代理人
主权项
地址