Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16859 - Hushmail fails in mozilla (1.2.1-r5) with blackdown jdk (1.4.1) default java security settings (gcc 3.2.2)
Summary: Hushmail fails in mozilla (1.2.1-r5) with blackdown jdk (1.4.1) default java ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Dylan Carlson (RETIRED)
URL: https://www.hushmail.com/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-04 18:58 UTC by Bug Hunter
Modified: 2003-05-26 05:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bug Hunter 2003-03-04 18:58:31 UTC
When attempting to log in to hushmail the following error is displayed after
entering your passphrase:

  Error authenticating with the server - java.security.AccessControlException:
access denied
  (java.net.SocketPermission keys1.hush.com resolve)

i have made a work-around by adding the following to the main java.policy file
/opt/blackdown-jdk-1.4.1/jre/lib/security/java.policy

diff java.policy.0  java.policy
46a47,49
> 
>       //Socket resolve permissions for hushmail (www.hushmail.com)
>       permission java.net.SocketPermission "*.hush.com:","resolve";

i would assume there is a better way to do this - such as granting the priv. just
to the hushmail app.  But i don't think cacheing is enabled, or i just don't
"get it"
enough to know where it stuffs it.  But if it was known - something like the
following
could be used:

  grant codeBase "file:/path/to/SomeHushFile.jar" {        //will grant this
rights only to Hushmail
      //Socket resolve permissions for hushmail (www.hushmail.com)
      permission java.net.SocketPermission "*.hush.com:","resolve";
  };

i got some hints from:
http://java.apache.org/faq/fom-serve/cache/298.html

At least i can use it now - and other apps can now "resolve" things in the
"*.hush.com:" domain - which doesn't strike me as a huge deal...
But you never know...

If there is a better way to handle this - please let me know.

The remaining question is - do we modify the default just for one site?


Reproducible: Always
Steps to Reproduce:
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-05 14:14:45 UTC
I dont want this, as I know next to nothing about java security, and will prob
only get to it in about 4 months (taking the other 300 bugs I have).
Comment 2 Dylan Carlson (RETIRED) gentoo-dev 2003-05-26 05:49:48 UTC
No, this is not something we can modify the default JDK java policy files for.  But if you put a .java.policy file in your home directory with the same stuff, you will get the same results.

Sorry it's not more automatic than that... but, that's something Hushmail has to cover in their app/documentation/etc. :/

Cheers