Fix privilege level for Read FRU Data command
Per the IPMI spec, the Read FRU Data command requires only User
privilege level.
Tested:
Before:
ipmitool -I lanplus -L USER raw 0xa 0x11
Unable to send RAW command (channel=0x0 netfn=0xa lun=0x0 cmd=0x11 rsp=0xd4): Insufficient privilege level
After:
ipmitool -I lanplus -L USER raw 0xa 0x11
Unable to send RAW command (channel=0x0 netfn=0xa lun=0x0 cmd=0x11 rsp=0xff): Unspecified error
Change-Id: I4c4df9a0813a93f69f0d66994af37c8f67f74f9e
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/storagehandler.cpp b/storagehandler.cpp
index a490235..eb1944a 100644
--- a/storagehandler.cpp
+++ b/storagehandler.cpp
@@ -782,9 +782,9 @@
ipmi::storage::cmdGetFruInventoryAreaInfo,
ipmi::Privilege::User, ipmiStorageGetFruInvAreaInfo);
- // <Add READ FRU Data
+ // <READ FRU Data>
ipmi_register_callback(NETFUN_STORAGE, IPMI_CMD_READ_FRU_DATA, NULL,
- ipmi_storage_read_fru_data, PRIVILEGE_OPERATOR);
+ ipmi_storage_read_fru_data, PRIVILEGE_USER);
// <Get Repository Info>
ipmi_register_callback(NETFUN_STORAGE, IPMI_CMD_GET_REPOSITORY_INFO,