[SC] Fix disk encryption check for non dm disks
The current logic simply returned UNKNOWN for all cases that were not a dm disk or we had trouble learning what is the uuid of that disk. With this change anything that is not a dm disk will return that encryption is disabled. It also now checks the result of the stat command and returns UNKNOWN if it fails as this prevents us from doing the further interrogation. BUG=1125634 TEST=unit_tests:EnterpriseReportingPrivateGetDeviceInfoTest.GetDeviceInfo Change-Id: I83e3b825f1033e14c3819d5adbe35fc0ee1be1c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2396377 Commit-Queue: Julian Pastarmov <pastarmovj@chromium.org> Reviewed-by:Owen Min <zmin@chromium.org> Cr-Commit-Position: refs/heads/master@{#804917}
Showing
Please register or sign in to comment