ipmi-whitelist: Add Get/Capture mfg data commands

Issue: get/capture manufacturing data commands are not supported

Fix: Add get/capture manufacturing data commands to ipmi-whitelist.conf

Tested:
Case 1:
1. Enable Manufacturing mode by pressing power button while bmc booting.
2. Check SpecialMode status
Command:  busctl call xyz.openbmc_project.SpecialMode
         /xyz/openbmc_project/security/special_mode
         org.freedesktop.DBus.Properties "Get" ss
         "xyz.openbmc_project.Security.SpecialMode" "SpecialMode"
Response: v s
  "xyz.openbmc_project.Control.Security.SpecialMode.Modes.Manufacturing"
3. Verify for capture manufacturing data command
Command : ipmitool raw 0x30 0xa1 0x00 0x00 0x01 0x01 0x01 0x01 0x00
Response:                   //success
4. Verify for get manufacturing data command
Command : ipmitool raw 0x30 0xa2 0x00
Response: 01 00 01 01 01 01 00

Case 2:
1. Disable manufacturing mode
Command:ipmitool raw 0x30 0xb4 3 0
Response:                   //success
2. Check SpecialMode status
Command:  busctl call xyz.openbmc_project.SpecialMode
         /xyz/openbmc_project/security/special_mode
         org.freedesktop.DBus.Properties "Get" ss
         "xyz.openbmc_project.Security.SpecialMode" "SpecialMode"
response: v s
  "xyz.openbmc_project.Control.Security.SpecialMode.Modes.None"
3. Verify for capture manufacturing data command
Command : ipmitool raw 0x30 0xa1 0x00 0x00 0x01 0x01 0x01 0x01 0x00
Response: Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0
          cmd=0xa1 rsp=0xc1): Invalid command
4. Verify for get manufacturing data command
Command : ipmitool raw 0x30 0xa2 0x00
Response: Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0
          cmd=0xa2 rsp=0xc1): Invalid command

Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Change-Id: I983852813bde02bb7e2a2b8168f4b489eaad4a77
1 file changed