Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 7944 invoked from network); 19 Oct 2008 20:09:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Oct 2008 20:09:48 -0000 Received: (qmail 261 invoked by uid 500); 19 Oct 2008 20:09:49 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 210 invoked by uid 500); 19 Oct 2008 20:09:49 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 199 invoked by uid 99); 19 Oct 2008 20:09:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Oct 2008 13:09:49 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of karlpauls@gmail.com designates 74.125.92.148 as permitted sender) Received: from [74.125.92.148] (HELO qw-out-1920.google.com) (74.125.92.148) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Oct 2008 20:08:37 +0000 Received: by qw-out-1920.google.com with SMTP id 5so447209qwc.16 for ; Sun, 19 Oct 2008 13:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=/0kufB6atO1BtkfpBQqLWIeFIRousTxjj6pj/KKqiXc=; b=htNiFPUJRw3eOHg8jCrLSFvB2eQ+21yaPUyD228fOI7MaGffL9Vzl+0fgL8gWR/OrX tEId/OIvIZrDBYDzyhSJuegUSxhUAUDAdty9U/4BE+AcVXJfRkAsYYLC5OiEifGPa0C1 OdVwJjOSQ9t+QCyEtbyc0A1gRwEPFyTfLD4WQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=V1b2mQoPOmOFHmMe0mLYB+2hyNiQfg5zhGrpfk4cU/jHXfw7wEKgUB1zQY9AqMK5y/ ae9ZfGgbv+1+Q65CB8873lfi5zl2L/RhbJlemv//DKGpCSfp8ex1Ed9Vviez9dUkrVv1 4y0gpLbk6LU5W20RTzojP9fh2k5GJcoe0wibU= Received: by 10.214.26.18 with SMTP id 18mr8873940qaz.83.1224446925207; Sun, 19 Oct 2008 13:08:45 -0700 (PDT) Received: by 10.214.215.17 with HTTP; Sun, 19 Oct 2008 13:08:45 -0700 (PDT) Message-ID: <487a994c0810191308n2d9fe02fy9a1debe8673b999c@mail.gmail.com> Date: Sun, 19 Oct 2008 22:08:45 +0200 From: "Karl Pauls" To: dev@felix.apache.org Subject: Re: New Felix throwing access exception In-Reply-To: <48F8AC04.1000606@ascert.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48F8950A.4000106@ascert.com> <48F895FD.9090804@ungoverned.org> <48F89C91.70604@ascert.com> <48F8A10F.2000008@ungoverned.org> <48F8AC04.1000606@ascert.com> X-Virus-Checked: Checked by ClamAV on apache.org I think I know what is going on. Can you svn up and try again? It should work now... regards, Karl On Fri, Oct 17, 2008 at 5:15 PM, Rob Walker wrote: > Cool - I'm outa here for week anyhow, so will check back Monday and see if > anyone has clues. > Wondering if it's a JNLP bug of some kind - the Permission test looks pretty > simple, so it implies the "all-permissions" isn't actually getting set. > - R > > Richard S. Hall wrote: >> >> Unfortunately, Karl is the security expert, so I will have to defer to >> him. I hope this is something simple... :-) >> >> -> richard >> >> Rob Walker wrote: >>> >>> Nope - still getting it even after trunk update. >>> >>> Not sure why it happens - our JNLP I think should grant all permissions: >>> >>> >> codebase="$$context" >>> href="www/$$name"> >>> >>> VersaTesT - VWINL >>> Ascert LLC >>> >>> VersaTest "light" VWIN GUI >>> VWINL >>> >>> >>> >>> >>> >>> >>> >>> >> href="http://java.sun.com/products/autodl/j2se"/> >>> >>> >>> >>> >>> >>> >>> >>> >> main-class="com.ascert.vt.launch.VersionCheckLaunchPanel"/> >>> >>> >>> Which definitely used to work in our past version. >>> >>> Bit of a mystery - looked at the BundleContextImpl code: >>> >>> public String getProperty(String name) >>> { >>> checkValidity(); >>> >>> Object sm = System.getSecurityManager(); >>> >>> if (sm != null) >>> { >>> if (!(Constants.FRAMEWORK_VERSION.equals(name) || >>> Constants.FRAMEWORK_VENDOR.equals(name) || >>> Constants.FRAMEWORK_LANGUAGE.equals(name)|| >>> Constants.FRAMEWORK_OS_NAME.equals(name) || >>> Constants.FRAMEWORK_OS_VERSION.equals(name) || >>> Constants.FRAMEWORK_PROCESSOR.equals(name))) >>> { >>> /Line 82: // /((SecurityManager) sm).checkPermission( >>> new java.util.PropertyPermission(name, "read")); >>> } >>> } >>> >>> return m_felix.getProperty(name); >>> } >>> >>> Not an area I know well - but can't see anything obviously wrong. Seems >>> to follow spec, and in theory we ought to have the requisite permission >>> >>> Will carry on investigating. >>> >>> -- Rob >>> >>> >>> Richard S. Hall wrote: >>>> >>>> Are you using trunk or 1.2.1? >>>> >>>> We just fixed a security-related issue for 1.2.2 (and in trunk) that >>>> address an issue where security was broken. Perhaps this is related, so try >>>> the 1.2.2 release if you aren't on trunk. >>>> >>>> -> richard >>>> >>>> >>>> Rob Walker wrote: >>>>> >>>>> Think we've fallen foul of more recent OSGi security handling - in a >>>>> JNLP launch, we're now seeing: >>>>> >>>>> ERROR: Error starting >>>>> http://localhost:8084/VtWebUi/dsv/ascert/vtmp/lib/vt/propsmgr.jar >>>>> (java.security.AccessControlException: access denied >>>>> (java.util.PropertyPermission system.props.list read)) >>>>> java.security.AccessControlException: access denied >>>>> (java.util.PropertyPermission system.props.list read) >>>>> at java.security.AccessControlContext.checkPermission(Unknown Source) >>>>> at java.security.AccessController.checkPermission(Unknown Source) >>>>> at java.lang.SecurityManager.checkPermission(Unknown Source) >>>>> at >>>>> org.apache.felix.framework.BundleContextImpl.getProperty(BundleContextImpl.java:82) >>>>> >>>>> "system.props.list" is actually one of the properties we pass in into >>>>> Felix via the Map at creation time. >>>>> >>>>> We sign our JARs and didn't trip on this one before - so guessing it's >>>>> something like a default SecurityManager being installed that we need to >>>>> alter or suppress somehow. >>>>> >>>>> Would appreciate some pointers since this is an area I'm not familiar >>>>> with >>>>> >>>>> Regards >>>>> >>>>> -- Rob >>>>> >>>>> >>>>> Ascert - Taking systems to the Edge >>>>> robw@ascert.com >>>>> +44 (0)20 7488 3470 >>>>> www.ascert.com >>>>> >>> > > -- > > > Ascert - Taking systems to the Edge > robw@ascert.com > +44 (0)20 7488 3470 > www.ascert.com > > -- Karl Pauls karlpauls@gmail.com