-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0, 1.3.0
-
None
-
beta2
-
generic
-
generic
The default system policy file (in jre/lib/security/java.policy)
grants all permissions to standard extensions, as follows:
grant codeBase "file:${java.home}/lib/ext/*" {
permission java.security.AllPermission;
};
This uses a hardcoded path to the extensions directory, which users could change
by setting the "java.ext.dirs" system property.
Therefore, the above "grant" statement should be changed to:
grant codeBase "file:${java.ext.dirs}/*" {
permission java.security.AllPermission;
};
grants all permissions to standard extensions, as follows:
grant codeBase "file:${java.home}/lib/ext/*" {
permission java.security.AllPermission;
};
This uses a hardcoded path to the extensions directory, which users could change
by setting the "java.ext.dirs" system property.
Therefore, the above "grant" statement should be changed to:
grant codeBase "file:${java.ext.dirs}/*" {
permission java.security.AllPermission;
};
- duplicates
-
JDK-4236952 java.policy fix for 4215035 assumed java.ext.dirs expansion was correct
-
- Closed
-
- relates to
-
JDK-4993819 standard extensions path is hard-coded in default system policy file
-
- Resolved
-
-
JDK-8040059 Change default policy for extensions to no permission
-
- Resolved
-