Add additional check for i2c master write read command

For security reasons, in i2c master RW IPMI command,
if the write date count > 1, needs to check if it is in MTF mode.

Tested:
In normal mode,
ipmitool raw 0x6 0x52 0xf 0xa2 8 0 works, but
ipmitool raw 0x6 0x52 0xf 0xa2 8 0 0 fails with
Insufficient privilege level.
Boot into MFG mode, the above command works.

Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
Change-Id: I364f41f632ed3790bcd1d9e9193c9c4a3529af53
1 file changed