Check that caller has correct permissions when attesting device IDs

+ ran rustfmt to satisfy upload hooks.

Bug: 181114803
Test: atest keystore2_test
Test: atest KeyAttestationTest
Test: Disable all userspace permission checks, generate key setting
  AttestationUtils.ID_TYPE_SERIAL, ensure it fails with message "Caller
  does not have the permission to attest device identifiers"
Change-Id: Ia458e2b3d850c6a48424de8baceec162cd83e60d
3 files changed