Aseda Aboagye
114f5cee5a
g: extension: Add a whitelist for vendor commands.
...
The USB FW upgrade endpoint should really only accept vendor commands
required to perform the firmware update. This commit adds a whitelist
that is checked whenever a vendor command is received over this
endpoint.
The allowed commands over USB are the following:
- EXTENSION_POST_RESET
- VENDOR_CC_IMMEDIATE_RESET (only for dev images)
There is also functionality to have a whitelist for vendor commands that
come over the TPM interface.
BUG=chrome-os-partner:62815
BRANCH=None
TEST=Flash Cr50 with image containing this change. Verify that an
upgrade over USB to newer image works.
TEST=Try using usb_updater to send a vendor command that's not in the
whitelist. Verify that the vendor command is dropped.
Change-Id: I71f8ba090a1cc6c9e7c30ce0dd3c25259e8f292f
Signed-off-by: Aseda Aboagye <aaboagye@google.com >
Reviewed-on: https://chromium-review.googlesource.com/443447
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org >
Tested-by: Aseda Aboagye <aaboagye@chromium.org >
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org >
2017-02-18 17:26:59 -08:00
..
2016-11-08 17:11:28 -08:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2013-09-27 23:07:21 +00:00
2016-08-24 16:30:10 +00:00
2016-08-11 14:46:33 -07:00
2016-08-24 16:30:10 +00:00
2016-11-16 19:04:31 -08:00
2017-02-11 13:06:38 -08:00
2017-02-11 13:06:38 -08:00
2016-04-18 17:32:40 -07:00
2016-10-11 23:01:59 -07:00
2017-02-02 19:09:52 -08:00
2017-02-02 19:09:52 -08:00
2017-02-06 14:50:32 -08:00
2017-02-10 19:02:55 -08:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2015-05-19 02:46:27 +00:00
2016-10-01 03:13:43 +00:00
2016-08-31 17:20:26 +00:00
2016-03-18 22:16:53 -07:00
2014-08-08 03:11:38 +00:00
2017-01-23 13:38:22 -08:00
2017-02-14 14:50:36 -08:00
2015-07-17 03:17:50 +00:00
2017-02-18 17:26:59 -08:00
2016-09-02 07:11:33 -07:00
2016-08-24 16:30:10 +00:00
2017-02-17 04:09:37 -08:00
2017-02-17 04:09:37 -08:00
2017-02-17 04:09:38 -08:00
2017-02-17 04:09:37 -08:00
2016-11-15 17:41:53 -08:00
2016-08-31 17:20:26 +00:00
2016-04-27 14:04:07 -07:00
2017-02-06 14:50:32 -08:00
2016-08-24 16:30:10 +00:00
2016-12-05 16:43:00 -08:00
2017-01-06 11:10:03 -08:00
2016-12-01 19:59:04 -08:00
2016-08-24 16:30:10 +00:00
2016-12-16 15:42:47 -08:00
2017-02-02 12:29:30 -08:00
2016-04-18 17:32:40 -07:00
2015-07-17 03:18:03 +00:00
2016-08-24 16:30:10 +00:00
2017-02-11 13:06:38 -08:00
2016-11-17 07:08:25 -08:00
2013-03-22 11:24:29 -07:00
2015-09-25 09:13:34 -07:00
2014-01-14 09:19:45 +00:00
2016-07-19 12:03:27 -07:00
2016-03-02 13:39:47 -08:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2015-10-13 05:28:54 -07:00
2017-01-20 00:05:06 -08:00
2015-10-13 05:28:54 -07:00
2015-10-13 05:28:54 -07:00
2016-08-24 17:40:27 -07:00
2016-10-01 00:02:01 -07:00
2016-11-04 18:31:37 -07:00
2017-02-10 12:11:47 -08:00
2017-02-16 18:03:59 -08:00
2017-01-09 23:47:07 -08:00
2017-02-08 16:24:42 -08:00
2013-08-02 18:22:57 -07:00
2016-10-01 03:14:07 +00:00
2016-11-15 17:41:53 -08:00
2016-08-24 16:30:10 +00:00
2017-02-06 14:50:32 -08:00
2016-08-24 16:30:10 +00:00
2017-02-11 13:06:38 -08:00
2017-01-03 15:13:58 -08:00
2016-08-24 16:30:10 +00:00
2016-09-08 17:57:51 -07:00
2015-06-11 00:08:49 +00:00
2015-07-15 21:57:36 +00:00
2016-11-10 21:28:28 -08:00
2017-02-17 04:09:37 -08:00
2017-02-11 13:06:38 -08:00
2014-05-17 20:14:17 +00:00
2016-05-05 19:16:50 -07:00
2016-08-31 17:20:26 +00:00
2017-01-05 21:13:09 -08:00
2016-03-21 16:35:33 -07:00
2016-08-24 16:30:10 +00:00
2016-10-20 01:55:59 -07:00
2016-10-05 20:58:37 -07:00
2017-02-09 05:04:56 +00:00
2017-02-13 18:25:51 -08:00
2017-02-18 17:26:59 -08:00
2017-01-04 18:07:12 -08:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2016-08-24 16:30:10 +00:00
2017-02-03 20:01:45 -08:00
2017-02-18 17:26:59 -08:00
2016-04-27 10:10:02 -07:00
2016-07-21 13:13:35 -07:00
2016-06-16 12:27:42 -07:00
2017-02-06 14:50:31 -08:00
2017-02-02 16:42:50 -08:00
2017-02-14 17:28:16 -08:00
2017-01-26 23:16:40 -08:00
2016-08-24 16:30:10 +00:00
2016-09-22 19:12:36 -07:00
2016-07-21 13:13:35 -07:00
2017-02-17 01:46:31 +00:00
2017-02-11 13:06:38 -08:00
2015-10-13 05:28:54 -07:00
2017-02-01 06:36:18 +00:00
2016-12-14 06:03:14 -08:00
2016-01-25 21:46:48 -08:00
2016-08-24 16:30:10 +00:00