felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Dubois (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-3993) Add Permissions file in Log service bundle
Date Sun, 24 Mar 2013 11:15:15 GMT
Romain Dubois created FELIX-3993:

             Summary: Add Permissions file in Log service bundle
                 Key: FELIX-3993
                 URL: https://issues.apache.org/jira/browse/FELIX-3993
             Project: Felix
          Issue Type: Improvement
          Components: Log Service
    Affects Versions: log-1.0.1
            Reporter: Romain Dubois
            Priority: Minor

Most of felix bundles should have a permissions file.

For Log Service bundle, I suggest the following content for "OSGI-INF/permissions.perm" file:

# Apache Felix Log Service
# Bundle permissions

# Imported/Exported packages 
(org.osgi.framework.PackagePermission   "org.osgi.framework"    "import")
(org.osgi.framework.PackagePermission   "org.osgi.service.log"  "import,exportonly")

# Log service configuration and registration
# ->  Activator
(java.util.PropertyPermission           "org.apache.felix.log.*"    "read")
(org.osgi.framework.ServicePermission   "org.osgi.service.log.*"    "get,register")

Note: I have extracted those permissions from code analysis then tested the suggested file
in simple examples.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message