summaryrefslogtreecommitdiffstats
path: root/ipmid.cpp
diff options
context:
space:
mode:
authorJames Feist <james.feist@linux.intel.com>2018-11-01 11:03:40 -0700
committerTom Joseph <tomjoseph@in.ibm.com>2018-11-08 12:52:53 +0000
commit331f5d510b9061820bff0081b161bfea09407b0b (patch)
tree89700f051cc44593180039a0946dd544f8d47ec2 /ipmid.cpp
parentd3e57d771199b851cd9cae6864e0429c6bb798cf (diff)
downloadphosphor-host-ipmid-331f5d510b9061820bff0081b161bfea09407b0b.tar.gz
phosphor-host-ipmid-331f5d510b9061820bff0081b161bfea09407b0b.zip
Add well-known name
For looking up the service a well-known name is very useful. Also dbus-broker default permissions require a well-known name to do matches. Tested-by: Found well-known name on dbus. Change-Id: Ieb85e808a1315204096c24a8d48a0e4a52fce764 Signed-off-by: James Feist <james.feist@linux.intel.com>
Diffstat (limited to 'ipmid.cpp')
-rw-r--r--ipmid.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipmid.cpp b/ipmid.cpp
index 10b41d4..2729cbb 100644
--- a/ipmid.cpp
+++ b/ipmid.cpp
@@ -647,6 +647,8 @@ int main(int argc, char* argv[])
// Now create the Host Bound Command manager. Need sdbusplus
// to use the generated bindings
sdbusp = std::make_unique<sdbusplus::bus::bus>(bus);
+ sdbusp->request_name("xyz.openbmc_project.Ipmi.Host");
+
cmdManager =
std::make_unique<phosphor::host::command::Manager>(*sdbusp, events);
OpenPOWER on IntegriCloud