简体   繁体   English

XP和Vista / Windows 7之间的Java WebStart权限差异

[英]Java WebStart permission differences between XP and Vista/Windows 7

I am having an issue attempting to get a production Java WebStart application running on Windows Vista or on Windows 7. This WebStart application is trusted, and is supposed to have full privileges to read/write/load dlls and other native libraries. 我在尝试使生产的Java WebStart应用程序在Windows Vista或Windows 7上运行时遇到问题。该WebStart应用程序是受信任的,并且应该具有读取/写入/加载dll和其他本机库的完整特权。

It does all of this perfectly fine on Windows XP, however on Vista/Windows 7 it is failing to get access to certain dlls. 它在Windows XP上可以很好地完成所有这些工作,但是在Vista / Windows 7上却无法访问某些dll。

If I run the application locally apart from WebStart altogether, it IS able to access the dll. 如果我完全不在WebStart本地运行该应用程序,则它可以访问dll。

I came across the following link: http://www.java.com/en/download/help/6000061000.xml 我遇到了以下链接: http : //www.java.com/en/download/help/6000061000.xml

This basically explains that whether you like it or not, a WebStart application on Vista/Windows 7 will not and never will run with quite the same privileges. 这基本上可以说明,无论您是否喜欢,Vista / Windows 7上的WebStart应用程序都不会并且永远不会以完全相同的特权运行。

Does anybody know a workaround for the elevated security apart from abandoning WebStart altogether? 除了完全放弃WebStart之外,没有人知道提高安全性的解决方法吗? Has anybody else run into a similar issue and even if you didn't figure it out, what have you tried that hasn't worked? 是否还有其他人遇到过类似的问题,即使您没有弄清楚,您尝试了什么却没有奏效? Any other suggestions are welcome too. 也欢迎任何其他建议。

The issue is that despite an applet or webstart application with elevated privileges, they are ALL placed within the Java plugin cache under the LocalLow directory. 问题是,尽管小程序或Webstart应用程序具有较高的特权,但它们都被放置在LocalLow目录下的Java插件缓存中。

The LocalLow directory is set to Low Integrity in Vista and Windows 7. 在Vista和Windows 7中,LocalLow目录设置为“低完整性”。

What this means is that while the applet or web start application may have full read/write privileges on the machine, because the executables are running from a Low Integrity directory, they are only allowed access to files and folders that are Low Integrity as well. 这意味着,尽管applet或Web Start应用程序可能在计算机上具有完全的读/写特权,但由于可执行文件是从低完整性目录运行的,因此它们也只能访问低完整性的文件和文件夹。

My way of getting around this is I located the Java plugin cache folder under LocalLow and change its integrity level to Medium. 解决此问题的方法是,将Java插件缓存文件夹放在LocalLow下,并将其完整性级别更改为Medium。 Unless explicitly set or a system folder, all folders are considered Medium Integrity by default. 除非明确设置或系统文件夹,否则默认情况下所有文件夹都被视为中等完整性。

How did I do this? 我是怎么做到的? I downloaded and used a nifty command line tool called chml http://www.minasi.com/apps/ . 我下载并使用了名为chml的漂亮命令行工具http://www.minasi.com/apps/

While I realize I created a security risk, I see it as localized to just Java plugin applications with All Permissions, essentially, it is no less secure than simply using XP, in fact more so because these java apps STILL cannot access system folders or resources. 当我意识到自己造成了安全风险时,我认为它仅限于具有“所有权限”的Java插件应用程序,从本质上讲,它的安全性不亚于仅使用XP的安全性,事实上,它的安全性更高,因为这些Java应用程序仍然无法访问系统文件夹或资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在JAVA中处理Windows XP或VISTA事件 - How to handle Windows XP or VISTA Events in JAVA Java-Windows XP,Vista上不显示TrayIcon消息 - Java - TrayIcon messages not displaying on Windows XP, Vista Java Webstart权限问题 - Java webstart permission issue 访问Java WebStart中的类的权限 - Permission to access classes in Java WebStart 调整音量并防止计算机处于Java待机状态(Mac和Windows XP,Vista) - Adjust volume and prevent computer from standby in Java… (Mac and Windows XP, Vista) Java(+-JNA)中有没有一种方法可以在XP + Vista + Windows 7中可靠地设置主系统卷? - Is there a way in Java (+- JNA) to set the master system volume reliably in XP+Vista+Windows 7? 为什么Vista上的Java报告它是在XP上? - Why is Java on a Vista box reporting it is on XP? 使用javaw.exe时,System.getProperty(“ os.name”)在Windows Vista上返回“ Windows XP”,但是java.exe可以工作 - System.getProperty(“os.name”) returns “Windows XP” on a Windows Vista when using javaw.exe, but java.exe works ntdll.dll是windows xp和windows vista的标准配置吗? - Does ntdll.dll come standard with windows xp and windows vista? Java Webstart在Windows上加载linux swt jar - Java webstart loading linux swt jars on windows
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM