On 27/02/2016 2:56 AM, Marcus Lagergren wrote:
Hi!
Is it possible to override lib/security/local_policy on app level without
patching jdk distro?
i.e. -Duse.this.policy.jar= … or something?
Can’t find a way to do it
http://docs.oracle.com/javase/8/docs/technotes/guides/security/PolicyFiles.html
Specifying an Additional Policy File at Runtime
It is also possible to specify an additional or a different policy file
when invoking execution of an application. This can be done via the
"-Djava.security.policy" command line argument, which sets the value of
the java.security.policy property. For example, if you use
java -Djava.security.manager -Djava.security.policy=someURL SomeApp
...
HTH
David
Regards
Marcus