[PATCH ipmi-fru-parser] Support for restricted mode for IPMI commands
OpenBMC Patches
openbmc-patches at stwcx.xyz
Thu May 19 03:50:14 AEST 2016
From: tomjose <tomjoseph at in.ibm.com>
---
strgfnhandler.C | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/strgfnhandler.C b/strgfnhandler.C
index eda4290..bb50bb0 100644
--- a/strgfnhandler.C
+++ b/strgfnhandler.C
@@ -99,5 +99,6 @@ ipmi_ret_t ipmi_storage_write_fru_data(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
void register_netfn_storage_write_fru()
{
printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",NETFUN_STORAGE, IPMI_CMD_WRITE_FRU_DATA);
- ipmi_register_callback(NETFUN_STORAGE, IPMI_CMD_WRITE_FRU_DATA, NULL, ipmi_storage_write_fru_data);
+ ipmi_register_callback(NETFUN_STORAGE, IPMI_CMD_WRITE_FRU_DATA, NULL, ipmi_storage_write_fru_data,
+ IPMI_WHITELISTED_COMMAND);
}
--
2.8.2
More information about the openbmc
mailing list