diff options
author | Ashley Lai <adlai@linux.vnet.ibm.com> | 2012-08-14 18:35:32 -0500 |
---|---|---|
committer | Kent Yoder <key@linux.vnet.ibm.com> | 2012-08-22 16:22:47 -0500 |
commit | c5df39262dd59dbbffb1017fca0f1661408ac9d5 (patch) | |
tree | 80548294fa8b0c6f7581bbbadc511badeccaa42d /drivers/char/tpm/tpm_eventlog.h | |
parent | 4a727429abec31c4f5d9607cebb4fb1cc21e1167 (diff) | |
download | kernel_goldelico_gta04-c5df39262dd59dbbffb1017fca0f1661408ac9d5.zip kernel_goldelico_gta04-c5df39262dd59dbbffb1017fca0f1661408ac9d5.tar.gz kernel_goldelico_gta04-c5df39262dd59dbbffb1017fca0f1661408ac9d5.tar.bz2 |
drivers/char/tpm: Add securityfs support for event log
This patch retrieves the event log data from the device tree
during file open. The event log data will then displayed through
securityfs.
Signed-off-by: Ashley Lai <adlai@us.ibm.com>
Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/char/tpm/tpm_eventlog.h')
-rw-r--r-- | drivers/char/tpm/tpm_eventlog.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm_eventlog.h b/drivers/char/tpm/tpm_eventlog.h index 8e23ccd..e7da086 100644 --- a/drivers/char/tpm/tpm_eventlog.h +++ b/drivers/char/tpm/tpm_eventlog.h @@ -68,4 +68,19 @@ enum tcpa_pc_event_ids { }; int read_log(struct tpm_bios_log *log); + +#if defined(CONFIG_TCG_IBMVTPM) || defined(CONFIG_TCG_IBMVTPM_MODULE) || \ + defined(CONFIG_ACPI) +extern struct dentry **tpm_bios_log_setup(char *); +extern void tpm_bios_log_teardown(struct dentry **); +#else +static inline struct dentry **tpm_bios_log_setup(char *name) +{ + return NULL; +} +static inline void tpm_bios_log_teardown(struct dentry **dir) +{ +} +#endif + #endif |