Add mfg filter to allow MTM cmds only in mfg mode
For security purpose, mfg filter check is used to allow
manufacturing mode commands execution only in manufacturing mode.
Invalid command comp code should be returned otherwise. This
provides option to return 0xC1 even for invalid number of
bytes specified as expected.
Tested:
ipmitool raw 0x30 0x14 0x0c 0x00 0x00 0x00
ipmitool raw 0x30 0x15 0x01 0x00
ipmitool raw 0x30 0xB5 0x01
ipmitool raw 0x30 0xA1
ipmitool raw 0x30 0xA2
All these commands return 0xC1, when not in manufacturing
mode and executes as expected
Signed-off-by: Ayushi Smriti <smriti.ayushi@linux.intel.com>
Change-Id: I0adae24b17f729d97aca7c5fc93df92520e7bf5a
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
Signed-off-by: Ayushi Smriti <smriti.ayushi@linux.intel.com>
1 file changed