| commit | 37b1d1ae379d2607302e3067c3c3ae29462f4abb | [log] [tgz] |
|---|---|---|
| author | Snehalatha Venkatesh <snehalathax.v@intel.com> | Mon Jun 28 10:13:37 2021 +0000 |
| committer | Vernon Mauery <vernon.mauery@linux.intel.com> | Wed Jul 14 19:29:06 2021 +0000 |
| tree | 3baf00bccaf17859aaf64129b6f7ea0229cb542d | |
| parent | 86ac49917a6a56f447e850f73c21b9cf07b24261 [diff] |
usercommands: Validate reserved field content zero
In Set User Password command, byte-1's[6] and byte-2's[7:2] are
reserved.
Return InvalidFieldRequest when reserved content is non-zero.
Tested:
Case-1:
Command : ipmitool raw 0x06 0x47 0xc2 0x19 0x85 0xc6 0xa2 0x17 0x0f
0x37 0xa5 0xf6 0xa2 0x81 0xfb 0x5b 0xb4 0x57 0x08 0x69 0xa6
0xe7 0x91 0x82
Response: Unable to send RAW command (channel=0x0 netfn=0x6 lun=0x0
cmd=0x47 rsp=0xcc): Invalid data field in request
Case-2:
Command : ipmitool raw 0x06 0x47 0x01 0x58 0x3c 0x11 0xce 0xa2 0xb9
0xd8 0x85 0x16 0x82 0x29 0x95 0xd2 0xe7 0xe0 0x47 0xb6 0x9d
0xbd 0xf2 0xb0
Response: Unable to send RAW command (channel=0x0 netfn=0x6 lun=0x0
cmd=0x47 rsp=0xcc): Invalid data field in request
Case-3:
Command : ipmitool raw 0x06 0x47 0xd2 0x02 0x85 0xc6 0xa2 0x17 0x0f
0x37 0xa5 0xf6 0xa2 0x81 0xfb 0x5b 0xb4 0x57 0x08 0x69 0xa6
0xe7 0x91 0x82
Response: Unable to send RAW command (channel=0x0 netfn=0x6 lun=0x0
cmd=0x47 rsp=0xcc): Invalid data field in request
Signed-off-by: Snehalatha Venkatesh <snehalathax.v@intel.com>
Change-Id: I08f63dd4c69ec62e4ac9ce9a3a298a62851e567b
To build this package, do the following steps:
1. ./bootstrap.sh
2. ./configure ${CONFIGURE_FLAGS}
3. make
To clean the repository run ./bootstrap.sh clean.