mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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: Nayna Jain <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Tested-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
This commit is contained in:
parent
cbef69a9e1
commit
b1a9b7b602
1 changed files with 2 additions and 2 deletions
|
|
@ -378,7 +378,7 @@ struct dentry **tpm_bios_log_setup(const char *name)
|
|||
|
||||
bin_file =
|
||||
securityfs_create_file("binary_bios_measurements",
|
||||
S_IRUSR | S_IRGRP, tpm_dir,
|
||||
0440, tpm_dir,
|
||||
(void *)&tpm_binary_b_measurements_seqops,
|
||||
&tpm_bios_measurements_ops);
|
||||
if (is_bad(bin_file))
|
||||
|
|
@ -386,7 +386,7 @@ struct dentry **tpm_bios_log_setup(const char *name)
|
|||
|
||||
ascii_file =
|
||||
securityfs_create_file("ascii_bios_measurements",
|
||||
S_IRUSR | S_IRGRP, tpm_dir,
|
||||
0440, tpm_dir,
|
||||
(void *)&tpm_ascii_b_measurements_seqops,
|
||||
&tpm_bios_measurements_ops);
|
||||
if (is_bad(ascii_file))
|
||||
|
|
|
|||
Loading…
Reference in a new issue