Re: [PATCH] tpm: improve output in sysfs files when the TPM fails

From: Greg KH
Date: Thu May 12 2005 - 17:56:57 EST


On Thu, May 12, 2005 at 05:20:22PM -0500, Kylene Hall wrote:
> When the TPM is in a disabled or deactivated state the sysfs pcrs and
> pubek files will appear empty. To remove any confusion this might cause,
> the files will instead contain the error the TPM returned (also indicative
> of what state the TPM is in and what actions might be needed to change
> that state).

No, sysfs files are not error logs. Please use the standard system wide
error log for this (syslog).

Why not just change the mode of the sysfs file instead, or delete it
entirely in this case?

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/