Java Security Manager構成

セキュリティが設定された JVM での実行

Java セキュリティマネージャを有効にして JVM をインストゥルメント化する場合は、アクティブなセキュリティ ポリシー ファイルを編集して、JVM と Java エージェント間の相互作用の問題を防ぐ必要があります。Java エージェントでは、コードブロックにこの変更を記載する必要があります。ポリシーファイルは、java.security.policy システムプロパティの値を調べることによって見つけることができます。

次のコードブロックを JVM server.policy ファイルに追加します。

grant codeBase "file:/<app_agent_path>/-" 
{ 
  permission java.security.AllPermission;
};

Run in a JVM with Security Enabled

To enable a Java Security Manager and instrument the JVM, you need to edit the active security policy file to prevent problems within the interaction between JVM and the Java Agent. The Java Agent requires the change listed in the code block. You can locate the policy file by inspecting the value of the java.security.policy system property.

Add this code block to the JVM server.policy file:

grant codeBase "file:/<app_agent_path>/-" 
{ 
  permission java.security.AllPermission;
};