diff options
author | Tom <tomjoseph@in.ibm.com> | 2016-09-06 17:21:23 +0530 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2017-01-17 16:52:30 +0530 |
commit | 0573237f4521a0087153cded38814461c8978262 (patch) | |
tree | 94e7345d7b34c81a436ab6c7e46554762e0a0718 /systemintfcmds.cpp | |
parent | 9e5232e59573ae4ddc6dd2064a813fd650dd0695 (diff) | |
download | phosphor-host-ipmid-0573237f4521a0087153cded38814461c8978262.tar.gz phosphor-host-ipmid-0573237f4521a0087153cded38814461c8978262.zip |
Add privilege level for each IPMI command
Change-Id: I07f160c6ea83dc91f46e21f263c4cf994aff081d
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'systemintfcmds.cpp')
-rw-r--r-- | systemintfcmds.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/systemintfcmds.cpp b/systemintfcmds.cpp index d920f95..f9a2dda 100644 --- a/systemintfcmds.cpp +++ b/systemintfcmds.cpp @@ -93,17 +93,19 @@ void register_netfn_app_functions() // <Read Event Message Buffer> printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",NETFUN_APP, IPMI_CMD_READ_EVENT); - ipmi_register_callback(NETFUN_APP, IPMI_CMD_READ_EVENT, NULL, ipmi_app_read_event); + ipmi_register_callback(NETFUN_APP, IPMI_CMD_READ_EVENT, NULL, ipmi_app_read_event, + SYSTEM_INTERFACE); // <Set BMC Global Enables> printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",NETFUN_APP, IPMI_CMD_SET_BMC_GLOBAL_ENABLES); ipmi_register_callback(NETFUN_APP, IPMI_CMD_SET_BMC_GLOBAL_ENABLES, NULL, - ipmi_app_set_bmc_global_enables); + ipmi_app_set_bmc_global_enables, SYSTEM_INTERFACE); // <Get Message Flags> printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",NETFUN_APP, IPMI_CMD_GET_MSG_FLAGS); - ipmi_register_callback(NETFUN_APP, IPMI_CMD_GET_MSG_FLAGS, NULL, ipmi_app_get_msg_flags); + ipmi_register_callback(NETFUN_APP, IPMI_CMD_GET_MSG_FLAGS, NULL, ipmi_app_get_msg_flags, + SYSTEM_INTERFACE); return; } |