summaryrefslogtreecommitdiffstats
path: root/whitelist-filter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix: RestrictionMode property change handlerRichard Marian Thomaiyar2019-04-161-7/+17
| | | | | | | | | | | | | | RestrictionMode PropertiesChanged signal handler is fixed to read the property list correctly, and use the same. Bug was causing ipmid to crash when RestrictionMode property was updated Tested: Verfied that ipmid didn't crash and updates the filed, when RestrictionMode property is updated. Change-Id: I33ff977b2d06d96a9591a9d650a8b76b3119b1fe Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* Only include ipmid/api.hpp for the new APIVernon Mauery2019-04-081-1/+0
| | | | | | | | | | | | | | After some feedback from users of the new IPMI API, they wanted to see two things: 1) don't require ipmid/api.hpp and ipmid/registration.hpp to be able to write new handlers 2) only require including ipmid/api.hpp (instead of ipmid/api.h) So now, by simply including ipmid/api.hpp instead of ipmid/api.h (deprecated), handlers incorporating the new IPMI API can be written. Change-Id: I446dcce70cff03d4ecc28c658292d052485f77fc Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Move util.cpp/util.hpp to libipmidVernon Mauery2019-03-251-1/+1
| | | | | | | | | | | | | | | | These are functions that are used widely by ipmid providers, so it makes sense to put them in libipmi.so (the library that all providers must link against). Tested-by: use nm to inspect the binaries to see that the symbols are in the expected library. arm-openbmc-linux-gnueabi-nm libipmid.so.0.0.0 \ | grep getDbusObject 0001063c T _ZN4ipmi13getDbusObjectERN9sdbusplus.... Change-Id: I1221f807f2711c5301c5574623564ea1ae48a437 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* fix whitelist RestrictionMode lookupVernon Mauery2019-03-071-3/+6
| | | | | | | | | | | The whitelist RestrictionMode lookup was missing the interface name on the properties get method call. This is a fixup for that. Tested-by: watch ipmid startup and see that it does not complain about fetching the whitelist setting. Change-Id: I030c0c66771afcb987e0679595a2d662f7c3ea9e Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* ipmid: Add whitelist filtering using the new filter registration mechanismVernon Mauery2019-02-251-0/+168
Implement the whitelist filtering as an optional provider using the new filter registration mechanism. Change-Id: I0d738e58508d31e6b1867e13b3b7ed048303d5d8 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
OpenPOWER on IntegriCloud