Custom security policy without replacing files in the OpenJDK?
david.holmes at oracle.com
Thu Mar 3 01:45:03 UTC 2016
On 27/02/2016 2:56 AM, Marcus Lagergren wrote:
> 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
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
More information about the core-libs-dev