| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
| |
If an error occurs while attempting to load the blob handlers (such as a
filesystem error), the uncaught exception will crash the entire IPMI
daemon. Instead, catch the exception and print an error message.
Tested: ipmid doesn't crash when /usr/lib/blobs-ipmid is missing
Signed-off-by: Benjamin Fair <benjaminfair@google.com>
Change-Id: Ic316f6e5aa3c4bc6eba4fa2e561b338f4b20f606
|
|
|
|
|
|
|
| |
The lsess variable can have a smaller scope.
Change-Id: I79aa84b25b52708c8c35ed1a56dbfe89dabd29fb
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
| |
Implement new command BmcBlobWriteMeta.
Change-Id: I2e148f4bde4ef5d24db7e30bb02bdde024d9166a
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
| |
Add a comment and fix up the destination folder for the example handler.
Change-Id: Idc3bfbb77d4d103092b49c7cc63d462fe23a5f61
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
Switches lookup to use a map as adding another command makes the list
too long.
Change-Id: I35257ff5ae8c4c14c88aa2fa7d866642370ef38f
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
This is a basic implementation that can be improved later. It provides
for returning a pointer that you provide in your test when needed.
Change-Id: I4647c7f8cb55fa2f37ce1561af5d528b75832d56
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
The BmcBlobWriteMeta command provides the notion that some blob object
may have meta data that can be updated by the host or caller.
Change-Id: Ief8e1bc5d49b7e0e4df61ef34d6b873777fabdb1
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
Unit-tests later required knowing the vtable for a BlobManager, and this
should avoid that needless complication.
Change-Id: I7a208d08c2065b7383fd5095e00d17c1ab3b0cf5
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
IPMI Blob handlers will need to include these mocks when building
unit-tests. Therefore, they must be installed.
Change-Id: I4c8ed0fa1a4a8912853c024206ef5e61f87707d8
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
|
| |
phosphor-ipmi-blobs now detects blob handlers compiled into shared
libraries on the BMC and loads them at start-up when it's loaded by
phosphor-host-ipmid.
Change-Id: Ib1b6b8f75aa544a263d37f71e133a9a188704de3
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
This module provides a couple basic methods for enumerating and then
loading handlers.
Change-Id: I4f58be313190c48de25c2b9578b7c622afefc656
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
getBlobManager will allow a library to get ahold of the BlobManager for
registration purposes.
Change-Id: I75f41601d10d59293c7752da8307507cc2c88434
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
| |
The example handler had compilation errors.
Change-Id: I53392b53f021bf01887559cee4bd79b2799f5730
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
The blobs and manager header will be used by handlers once we've
transitioned to dynamic loading.
Change-Id: Ieae8fcfe383007731cb4f8b2619612c3bfa47f50
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
| |
Adds *.lo to the ignored files list.
Change-Id: Iff18258584eec18f740ebe03815311c4245a4d96
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
|
| |
Previously, the ENABLE_EXAMPLE was only an AM_CONDITIONAL and therefore
not passed down to the source environment via config.h. This fixes
that.
Change-Id: I8e02112f12c4aaef22eda76cc9e50b9bf7f32dda
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
| |
The library currently does not require linking against systemd.
Change-Id: I787e718b0b33bdd68aba4afc712a97dec97795aa
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
This adds an example handler to demonstrate how one can add a specific
type of BLOB handler.
Change-Id: Ib5421f1b945b45998b40d3939a4dab9cdf39aaa9
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
| |
Setting as separate patch to not require move until user is ready.
Change-Id: Ia15de3ba1a4332dc51cc5539e895d7ab5ee072c7
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
This implements a majority of the OEM IPMI BLOBS protocol. The only
piece missing from this is the timed expiration of sessions.
Change-Id: I82c9d17b625c94fc3340edcfabbbf1ffeb5ad7ac
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
| |
Adds the design document as a README for the project.
Change-Id: Ida502441c0dd0fef7c9a63e9bee69122b7c7e24b
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|