Felix Meschberger | efccbe0 | 2013-08-19 08:34:30 +0000 | [diff] [blame] | 1 | # Licensed to the Apache Software Foundation (ASF) under one or more |
| 2 | # contributor license agreements. See the NOTICE file distributed with |
| 3 | # this work for additional information regarding copyright ownership. |
| 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 |
| 5 | # (the "License"); you may not use this file except in compliance with |
| 6 | # the License. You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
Felix Meschberger | eaa3e20 | 2013-08-14 08:07:49 +0000 | [diff] [blame] | 16 | # Apache Felix Configuration Admin Service |
| 17 | # Bundle permissions |
| 18 | # see FELIX-4039 |
| 19 | # |
| 20 | |
| 21 | # Imported/Exported packages |
| 22 | # -> MANIFEST.MF |
| 23 | (org.osgi.framework.PackagePermission "org.osgi.service.log" "import") |
| 24 | (org.osgi.framework.PackagePermission "org.osgi.framework" "import") |
| 25 | (org.osgi.framework.PackagePermission "org.osgi.service.cm" "import,exportonly") |
| 26 | (org.osgi.framework.PackagePermission "org.apache.felix.cm" "import,exportonly") |
| 27 | (org.osgi.framework.PackagePermission "org.apache.felix.cm.file" "import,exportonly") |
| 28 | |
| 29 | # General bundle permissions |
| 30 | (java.util.PropertyPermission "felix.cm.*" "read") |
| 31 | (org.osgi.framework.ServicePermission "org.apache.felix.cm.*" "get,register") |
| 32 | (org.osgi.framework.ServicePermission "org.osgi.service.cm.*" "get,register") |
| 33 | (org.osgi.framework.ServicePermission "org.osgi.service.log.LogService" "get") |
| 34 | |
| 35 | # Manage configurations |
| 36 | # -> ConfigurationAdminImpl |
| 37 | (org.osgi.framework.AdminPermission "*" "metadata") |
| 38 | (org.osgi.service.cm.ConfigurationPermission "*" "configure,target") |
| 39 | |
| 40 | # Handle persistent configuration files |
| 41 | # -> FilePersistenceManager |
Felix Meschberger | 88489df | 2013-12-29 21:23:45 +0000 | [diff] [blame] | 42 | (java.util.PropertyPermission "os.name" "read") |
Felix Meschberger | eaa3e20 | 2013-08-14 08:07:49 +0000 | [diff] [blame] | 43 | (java.util.PropertyPermission "user.dir" "read") |
| 44 | (java.io.FilePermission "-" "read,write,execute,delete") |
Felix Meschberger | ec1f505 | 2013-12-28 19:53:25 +0000 | [diff] [blame] | 45 | |
Felix Meschberger | eaa3e20 | 2013-08-14 08:07:49 +0000 | [diff] [blame] | 46 | # -> ConfigurationManager |
| 47 | (org.osgi.framework.ServicePermission "org.apache.felix.cm.PersistenceManager" "register") |
Felix Meschberger | ec1f505 | 2013-12-28 19:53:25 +0000 | [diff] [blame] | 48 | |
| 49 | # -> BaseTracker.getAccessControlContext |
| 50 | (java.lang.RuntimePermission "getProtectionDomain") |