diff options
author | James Feist <james.feist@linux.intel.com> | 2018-11-01 11:03:40 -0700 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2018-11-08 12:52:53 +0000 |
commit | 331f5d510b9061820bff0081b161bfea09407b0b (patch) | |
tree | 89700f051cc44593180039a0946dd544f8d47ec2 /ipmid.cpp | |
parent | d3e57d771199b851cd9cae6864e0429c6bb798cf (diff) | |
download | phosphor-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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |