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 |
| 42 | (java.util.PropertyPermission "user.dir" "read") |
| 43 | (java.io.FilePermission "-" "read,write,execute,delete") |
| 44 | # -> ConfigurationManager |
| 45 | (org.osgi.framework.ServicePermission "org.apache.felix.cm.PersistenceManager" "register") |