【24h】

Policy Enforcement with Proactive Libraries

机译:主动图书馆的政策执行

获取原文

摘要

Software libraries implement APIs that deliver reusable functionalities. To correctly use these functionalities, software applications must satisfy certain correctness policies, for instance policies about the order some API methods can be invoked and about the values that can be used for the parameters. If these policies are violated, applications may produce misbehaviors and failures at runtime. Although this problem is general, applications that incorrectly use API methods are more frequent in certain contexts. For instance, Android provides a rich and rapidly evolving set of APIs that might be used incorrectly by app developers who often implement and publish faulty apps in the marketplaces. To mitigate this problem, we introduce the novel notion of proactive library, which augments classic libraries with the capability of proactively detecting and healing misuses at runtime. Proactive libraries blend libraries with multiple proactive modules that collect data, check the correctness policies of the libraries, and heal executions as soon as the violation of a correctness policy is detected. The proactive modules can be activated or deactivated at runtime by the users and can be implemented without requiring any change to the original library and any knowledge about the applications that may use the library. We evaluated proactive libraries in the context of the Android ecosystem. Results show that proactive libraries can automatically overcome several problems related to bad resource usage at the cost of a small overhead.
机译:软件库实现了提供可重用功能的API。为了正确使用这些功能,软件应用程序必须满足某些正确性策略,例如,有关可以调用某些API方法的顺序以及有关可以用于参数的值的策略。如果违反了这些策略,则应用程序可能会在运行时产生异常行为和故障。尽管此问题很普遍,但在某些情况下错误使用API​​方法的应用程序更为常见。例如,Android提供了一组丰富且快速发展的API,这些API可能会被经常在市场上实施和发布有问题的应用程序的应用程序开发人员错误地使用。为了减轻这个问题,我们引入了主动库的新概念,该库通过在运行时主动检测和修复滥用的能力来扩充经典库。主动库将库与多个主动模块混合在一起,这些主动模块收集数据,检查库的正确性策略并在检测到正确性策略违规后立即执行。主动模块可以由用户在运行时激活或停用,并且可以在不需要更改原始库和任何有关可以使用该库的应用程序的知识的情况下实现。我们在Android生态系统的背景下评估了主动型库。结果表明,主动式库可以自动解决一些与资源使用不当有关的问题,而所需的开销却很小。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号