[icedtea-web] RFC: custom policy for trusted applications

Omair Majid omajid at redhat.com
Tue Dec 21 15:06:34 PST 2010


The attached patch adds support for using a custom policy file to grant 
permissions to trusted applications.

2010-12-21  Omair Majid  <omajid at redhat.com>

     * netx/net/sourceforge/jnlp/SecurityDesc.java: Add
     (SecurityDesc): Initialize customTrustedPolicy.
     (getCustomTrustedPolicy): New method. Get custom policy file from
     configuration and use it to initialize a custom configuration.
     (getPermissions): If trusted application and customTrustedPolicy is
     not null, delegate to otherwise return AllPermissions.
     * netx/net/sourceforge/jnlp/config/Defaults.java
     (getDefaults): Use constant for property.
     * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java:
     Add new constant KEY_SECURITY_TRUSTED_POLICY.
     * netx/net/sourceforge/jnlp/runtime/ApplicationInstance.java
     (installEnvironment): Pass cs as a parameter to
     * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
     (getPermissions): Likewise.

Any comments or concerns?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: custom-policy-support-01.patch
Type: text/x-patch
Size: 5533 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20101221/14ef3480/custom-policy-support-01.patch 

More information about the distro-pkg-dev mailing list