65 lines
3.6 KiB
HTML
65 lines
3.6 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
|
|
|
|
<title>Configure the java.policy file</title>
|
|
</head>
|
|
|
|
<BODY>
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
|
|
<h5><a name="seccj2ja"></a>Configure the java.policy file</h5>
|
|
|
|
<p>The java.policy file is a global default policy file that is shared by all of the Java programs that run on the iSeries system. It is never recommended to modify this file. If some Java programs on a node require permissions that are not defined as defaults in the java.policy file then add the permissions by configuring the server.policy file. For more information, see <a href="seccj2se.htm">Configure the server.policy file</a>.</p>
|
|
|
|
<p>The java.policy file is included as part of the Java development kit, and it is not managed by the WebSphere configuration and file replication services.</p>
|
|
|
|
<p>The java.policy file that is used by WebSphere Application Server - Express is located in the /QIBM/ProdData/Java400/jdk13/lib/security directory. It contains these default permissions:</p>
|
|
|
|
<pre> grant codeBase "file:${java.home}/lib/ext/*" {
|
|
permission java.security.AllPermission;
|
|
};
|
|
|
|
grant codeBase "file:/QIBM/ProdData/OS400/Java400/*" {
|
|
permission java.security.AllPermission;
|
|
};
|
|
|
|
grant codeBase "file:/QIBM/ProdData/OS400/Java400/ext/*" {
|
|
permission java.security.AllPermission;
|
|
};
|
|
|
|
grant codeBase "file:/QIBM/ProdData/Java400/*" {
|
|
permission java.security.AllPermission;
|
|
};
|
|
|
|
grant {
|
|
permission java.lang.RuntimePermission "stopThread";
|
|
permission java.net.SocketPermission "localhost:1024-", "listen";
|
|
permission java.util.PropertyPermission "java.version", "read";
|
|
permission java.util.PropertyPermission "java.vendor", "read";
|
|
permission java.util.PropertyPermission "java.vendor.url", "read";
|
|
permission java.util.PropertyPermission "java.class.version", "read";
|
|
permission java.util.PropertyPermission "os.name", "read";
|
|
permission java.util.PropertyPermission "os.version", "read";
|
|
permission java.util.PropertyPermission "os.arch", "read";
|
|
permission java.util.PropertyPermission "file.separator", "read";
|
|
permission java.util.PropertyPermission "path.separator", "read";
|
|
permission java.util.PropertyPermission "line.separator", "read";
|
|
permission java.util.PropertyPermission "java.specification.version", "read";
|
|
permission java.util.PropertyPermission "java.specification.vendor", "read";
|
|
permission java.util.PropertyPermission "java.specification.name", "read";
|
|
permission java.util.PropertyPermission "java.vm.specification.version", "read";
|
|
permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
|
|
permission java.util.PropertyPermission "java.vm.specification.name", "read";
|
|
permission java.util.PropertyPermission "java.vm.version", "read";
|
|
permission java.util.PropertyPermission "java.vm.vendor", "read";
|
|
permission java.util.PropertyPermission "java.vm.name", "read";
|
|
};</pre>
|
|
|
|
</body>
|
|
</html>
|
|
|