Commit b1a9b7b6 authored by Nayna Jain's avatar Nayna Jain Committed by Jarkko Sakkinen

tpm: replace symbolic permission with octal for securityfs files

checkpatch.pl flags warning for symbolic permissions and suggests
to replace with octal value.

This patch changes securityfs pseudo files permission
to octal values in tpm_bios_log_setup().
Signed-off-by: default avatarNayna Jain <nayna@linux.vnet.ibm.com>
Reviewed-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
parent cbef69a9
...@@ -378,7 +378,7 @@ struct dentry **tpm_bios_log_setup(const char *name) ...@@ -378,7 +378,7 @@ struct dentry **tpm_bios_log_setup(const char *name)
bin_file = bin_file =
securityfs_create_file("binary_bios_measurements", securityfs_create_file("binary_bios_measurements",
S_IRUSR | S_IRGRP, tpm_dir, 0440, tpm_dir,
(void *)&tpm_binary_b_measurements_seqops, (void *)&tpm_binary_b_measurements_seqops,
&tpm_bios_measurements_ops); &tpm_bios_measurements_ops);
if (is_bad(bin_file)) if (is_bad(bin_file))
...@@ -386,7 +386,7 @@ struct dentry **tpm_bios_log_setup(const char *name) ...@@ -386,7 +386,7 @@ struct dentry **tpm_bios_log_setup(const char *name)
ascii_file = ascii_file =
securityfs_create_file("ascii_bios_measurements", securityfs_create_file("ascii_bios_measurements",
S_IRUSR | S_IRGRP, tpm_dir, 0440, tpm_dir,
(void *)&tpm_ascii_b_measurements_seqops, (void *)&tpm_ascii_b_measurements_seqops,
&tpm_bios_measurements_ops); &tpm_bios_measurements_ops);
if (is_bad(ascii_file)) if (is_bad(ascii_file))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment