summaryrefslogtreecommitdiffstats
path: root/groupext.cpp
diff options
context:
space:
mode:
authorTom <tomjoseph@in.ibm.com>2016-09-06 17:21:23 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2017-01-17 16:52:30 +0530
commit0573237f4521a0087153cded38814461c8978262 (patch)
tree94e7345d7b34c81a436ab6c7e46554762e0a0718 /groupext.cpp
parent9e5232e59573ae4ddc6dd2064a813fd650dd0695 (diff)
downloadphosphor-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 'groupext.cpp')
-rw-r--r--groupext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/groupext.cpp b/groupext.cpp
index ba43794..6891d75 100644
--- a/groupext.cpp
+++ b/groupext.cpp
@@ -24,8 +24,10 @@ ipmi_ret_t ipmi_groupext(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
void register_netfn_groupext_functions()
{
+ // <Group Extension Command>
printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",NETFUN_GRPEXT, GRPEXT_GET_GROUP_CMD);
- ipmi_register_callback(NETFUN_GRPEXT, GRPEXT_GET_GROUP_CMD, NULL, ipmi_groupext);
+ ipmi_register_callback(NETFUN_GRPEXT, GRPEXT_GET_GROUP_CMD, NULL, ipmi_groupext,
+ PRIVILEGE_USER);
return;
}
OpenPOWER on IntegriCloud