trousers: fix auth failure reporting

Auth-failure is not reported by anomaly detector properly because tcsd
reports auth-failure before anomaly detector starts. As a workaround, we
add an upstart script to report auth-failure again if it is not reported
previously.

BUG=b:201961686
TEST=tpm_manager_client read_space --index=0x1000f000 --file=/tmp/123 \
     --password=test123; \
     reboot; # see if the auth-failure is reported properly.
     reboot; # see if no redundant auth-failure is reported.

Change-Id: I47e21acec3b0a7ff23f84f761df12a037e90fef4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/trousers/+/3219020
Commit-Queue: Ching-Kang Yen <chingkang@chromium.org>
Tested-by: Ching-Kang Yen <chingkang@chromium.org>
Reviewed-by: Miriam Zimmerman <mutexlox@chromium.org>
Reviewed-by: Andrey Pronin <apronin@chromium.org>
1 file changed