From commits-return-64566-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Wed Nov 10 12:41:11 2010 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 84074 invoked from network); 10 Nov 2010 12:41:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 12:41:10 -0000 Received: (qmail 90794 invoked by uid 500); 10 Nov 2010 12:41:42 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 89233 invoked by uid 500); 10 Nov 2010 12:41:39 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 89226 invoked by uid 99); 10 Nov 2010 12:41:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 12:41:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 12:41:36 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAACfDmR000658 for ; Wed, 10 Nov 2010 12:41:14 GMT Message-ID: <15281087.5621289392873960.JavaMail.jira@thor> Date: Wed, 10 Nov 2010 07:41:13 -0500 (EST) From: "Hudson (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6367) [classlib] Some Methods doesn't have security Permissions check as compared to SUN JDK. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930583#action_12930583 ] Hudson commented on HARMONY-6367: --------------------------------- Integrated in Harmony-select-1.5-head-linux-x86_64 #156 (See [https://hudson.apache.org/hudson/job/Harmony-select-1.5-head-linux-x86_64/156/]) Fix for HARMONY-6367 ([classlib] Some Methods doesn't have security Permissions check as compared to SUN JDK) Add further check for accepting a datagram connection. > [classlib] Some Methods doesn't have security Permissions check as compared to SUN JDK. > --------------------------------------------------------------------------------------- > > Key: HARMONY-6367 > URL: https://issues.apache.org/jira/browse/HARMONY-6367 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M11 > Environment: JDK Security permission checks > Reporter: varun srivastava > Assignee: Tim Ellison > Priority: Critical > Fix For: 5.0M12 > > Original Estimate: 96h > Remaining Estimate: 96h > > Following Methods doesn't have security Permissions as compared to SUN JDK. > ----------------------------------------------------------------------------------------------------------------- > 1) java.net.URL: java.net.URLConnection openConnection(java.net.Proxy) - "checkConnect" missing in Harmony. Sun perform checkConnect if proxy is present. It checks whether user is allowed to connect to proxy. > 2) java.net.ServerSocket: void implAccept(java.net.Socket) : Harmony missing checkAccept in protected method. Anyone can create a subclass of SerSocket and accept connections. > 3) java.net.SocketPermission: boolean equals(java.lang.Object) - Harmony use getHostNameInternal method instead of calling getByName as done in Sun, to retrieve host name of the machine. Thats why checkConnect is never called before retrieving hostname. > 4) java.security.Provider: void load(java.io.InputStream) - Harmony misses checkSecurityAccess("putProviderProperty." + name) check > 5) java.security.ProtectionDomain: java.lang.String toString() - Harmony doesn't have checkPermission(SecurityConstants.GET_POLICY_PERMISSION) > check in case Policy. isSet for dynamicPerms. > - > Varun Srivastava > UT Austin -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.