Re: [PATCH v8 22/22] tpm: disable the TPM if NULL name changes

Jarkko Sakkinen
2024-04-29T23:34:39Z

On Mon Apr 29, 2024 at 11:28 PM EEST, James Bottomley wrote:
> + if (chip->flags & TPM_CHIP_FLAG_DISABLE)
> + return rc;
> +

s/DISABLE/ACCESS_DENIED/ as it is more to the point.

Further, tpm_open() should fail right off the bat after ending up to
this situation.

BR, Jarkko