加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

java – 什么是原生沙箱?

发布时间:2020-12-15 00:35:04 所属栏目:Java 来源:网络整理
导读:我发现在8u51的 Java控制面板中添加了“启用操作系统的受限环境(本机沙箱)”.但我找不到任何文件. 解决方法 从官方 Release Notes for JDK 8 and JDK 8 Update Releases我们知道: Native sandbox is available on Windows platform only. Native sandbox ca
我发现在8u51的 Java控制面板中添加了“启用操作系统的受限环境(本机沙箱)”.但我找不到任何文件.

解决方法

从官方 Release Notes for JDK 8 and JDK 8 Update Releases我们知道:
  • Native sandbox is available on Windows platform only.
  • Native sandbox can be enabled or disabled through Java Control Panel->Advanced settings->Enable the operating system’s restricted environment (native sandbox) or by setting deployment.security.use.native.sandbox property to true in deployment.properties file.

  • Native sandbox is disabled by default.

  • When native sandbox is enabled,the sandbox applets or web-start applications will run in a restricted environment,that is provided by the operating system. This will not affect the all-permission applications and they will continue to run as before.

  • Native sandbox will be disabled for applications included the in Exception Site List (ESL) or when Deployment Rule Set (DRS) is used.

  • Sandbox applets deployed with HTML applet tag which includes all-permissions JAR files from the Class-Path manifest attribute,will run in native sandbox.

  • In such cases,a special warning dialog will display,informing the user that the applet may not work properly,when such an applet tries to access the all-permission JAR files.

  • Custom preloader will be disabled in certain cases when native sandbox is enabled:

    • Custom preloader will be disabled when sandbox applets or web-start applications are initializing and the default preloader will be used instead. After application is initialized,Java VM restarts with native sandbox enabled and the custom preloader will be used.
    • For all-permission applications,custom preloader will be disabled if it is located in the JNLP file with sandbox permission,until user agrees to run application from the Security Dialog,which grants unrestricted access (privileged) to application.

目前,没有比这更多的文件了.总而言之,在Java平台中,本机沙箱是一种特定的Windows功能,它使用操作系统中的一组API来改进沙盒.

Windows应用商店应用应使用相同的API集.有一篇关于此的文章:Windows Store Apps live in the Sandbox.它说:

Being in the Sandbox also means the app has no direct access to any other app or service running outside of the app’s sandbox. Access to other apps or services is facilitated by Windows itself with a defined set of APIs with in the runtime environment.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读