summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/dbus/phosphor-mapper
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2018-10-23 03:48:49 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-10-30 04:59:15 +0300
commit4f045d0b1bd11f4529a4b25c69a95ac043fe9e76 (patch)
treee076890092af8dbda6f57726c534e8f317e1c74b /meta-phosphor/recipes-phosphor/dbus/phosphor-mapper
parent24dc4d718b07918a78407cacc7d2612850ddd863 (diff)
downloadopenbmc-4f045d0b1bd11f4529a4b25c69a95ac043fe9e76.tar.xz
phosphor-mapper: Add service namespaces
The c++ mapper implements a dbus service namespace whitelist instead of a path namespace whitelist. A service namespace whitelist significantly reduces the amount of introspection required by the mapper as compared to path namespaces. Add the service namespace whitelist to the mapper command line in the mapper systemd unit and extend the existing framework for specifying mapper command line arguments to include a service namespace whitelist. Note that support for a _service_ blacklist is added and _path_ and _interface_ blacklists are not being re-introduced. (From meta-phosphor rev: 385c63fee1d7ac4f34165de7095f2e76b10f1328) Change-Id: I0cc8f7d7dd0c1196b2354118cf6ab89b2d30231f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/recipes-phosphor/dbus/phosphor-mapper')
-rw-r--r--meta-phosphor/recipes-phosphor/dbus/phosphor-mapper/xyz.openbmc_project.ObjectMapper.service4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-phosphor/recipes-phosphor/dbus/phosphor-mapper/xyz.openbmc_project.ObjectMapper.service b/meta-phosphor/recipes-phosphor/dbus/phosphor-mapper/xyz.openbmc_project.ObjectMapper.service
index 394e0edd1..69fb1e212 100644
--- a/meta-phosphor/recipes-phosphor/dbus/phosphor-mapper/xyz.openbmc_project.ObjectMapper.service
+++ b/meta-phosphor/recipes-phosphor/dbus/phosphor-mapper/xyz.openbmc_project.ObjectMapper.service
@@ -8,7 +8,9 @@ Restart=always
Type=dbus
ExecStart=/usr/bin/env phosphor-mapper \
--path_namespaces="${{MAPPER_NAMESPACES}}" \
- --interface_namespaces="${{MAPPER_INTERFACES}}"
+ --service_namespaces="${{MAPPER_SERVICES}}" \
+ --interface_namespaces="${{MAPPER_INTERFACES}}" \
+ --service_blacklists="${{MAPPER_SERVICEBLACKLISTS}}"
SyslogIdentifier=phosphor-mapper
BusName={BUSNAME}
TimeoutStartSec=300