Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMykola Nikishov2019-05-13 02:28:25 -0400
committerMykola Nikishov2019-05-14 12:51:51 -0400
commitad50f2e8ccbef7ce82fe7ed343d2ae194575f687 (patch)
tree672979d4370c678a10e9407c382a82abace8d31c /bundles/org.eclipse.equinox.launcher/META-INF/MANIFEST.MF
parentd2fb14e1936a8b0d3ca4a25468a6364362e22e0a (diff)
downloadrt.equinox.framework-ad50f2e8ccbef7ce82fe7ed343d2ae194575f687.tar.gz
rt.equinox.framework-ad50f2e8ccbef7ce82fe7ed343d2ae194575f687.tar.xz
rt.equinox.framework-ad50f2e8ccbef7ce82fe7ed343d2ae194575f687.zip
Bug 547265 - Fine-grained access to system properties in launcher's Main
Running with SecurityManager enabled, System.getProperties() requires full access to all properties, including write permission, even if we are not going to modify any of them. Instead, replace System.getProperties().xxx() chained calls with their direct counterparts: - System.getProperties().getProperty() with System.getProperty() - System.getProperties().put() with System.setProperty() - System.getProperties().remove() with System.clearProperty() This would allow to use minimal security policy regarding system properties like: grant { permission java.util.PropertyPermission "*", "read"; permission java.util.PropertyPermission "osgi.*", "write"; permission java.util.PropertyPermission "eclipse.*", "write"; }; and would provide more specific error message if/when AccessControlException occurs: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "eclipse.exitcode" "read") Change-Id: If5d4cb0dc8ad795d1a9c85932222072bd58121ce Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
Diffstat (limited to 'bundles/org.eclipse.equinox.launcher/META-INF/MANIFEST.MF')
-rw-r--r--bundles/org.eclipse.equinox.launcher/META-INF/MANIFEST.MF2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.launcher/META-INF/MANIFEST.MF
index 569b98c33..36e6dfddf 100644
--- a/bundles/org.eclipse.equinox.launcher/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.equinox.launcher/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.equinox.launcher;singleton:=true
-Bundle-Version: 1.5.300.qualifier
+Bundle-Version: 1.5.400.qualifier
Main-Class: org.eclipse.equinox.launcher.Main
Bundle-ClassPath: .
Bundle-Vendor: %providerName

Back to the top