blob: 1f3fb33591d5a5ae5e554e1357173fcfd7c4b9c0 [file] [log] [blame]
Felix Meschbergerefccbe02013-08-19 08:34:30 +00001# 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 Meschbergereaa3e202013-08-14 08:07:49 +000016# 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 Meschberger88489df2013-12-29 21:23:45 +000042(java.util.PropertyPermission "os.name" "read")
Felix Meschbergereaa3e202013-08-14 08:07:49 +000043(java.util.PropertyPermission "user.dir" "read")
44(java.io.FilePermission "-" "read,write,execute,delete")
Felix Meschbergerec1f5052013-12-28 19:53:25 +000045
Felix Meschbergereaa3e202013-08-14 08:07:49 +000046# -> ConfigurationManager
47(org.osgi.framework.ServicePermission "org.apache.felix.cm.PersistenceManager" "register")
Felix Meschbergerec1f5052013-12-28 19:53:25 +000048
49# -> BaseTracker.getAccessControlContext
50(java.lang.RuntimePermission "getProtectionDomain")