Updated privilege for set front panel command
Updated the execution privilege settings to
'Admin' for Set Front Panel Button enables
command as per IPMI spec.
Tested:
Tested Front Panel Enable command with different
privileged users and works only with Admin privilege.
Change-Id: I0a23a04321afb45107ac582bede40582c9ccc13c
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
diff --git a/src/chassiscommands.cpp b/src/chassiscommands.cpp
index f5cc0a3..24e3322 100644
--- a/src/chassiscommands.cpp
+++ b/src/chassiscommands.cpp
@@ -658,7 +658,7 @@
// <Set Front Panel Enables>
ipmi::registerHandler(ipmi::prioOemBase, ipmi::netFnChassis,
ipmi::chassis::cmdSetFrontPanelButtonEnables,
- ipmi::Privilege::User,
+ ipmi::Privilege::Admin,
ipmiSetFrontPanelButtonEnables);
}