ima: Fix function name error in comment.
Subsystems (3)
PATCH v2 1/1 ima: Fix function name error in comment.
The original function name was ima_path_check(). The policy parsing
still supports PATH_CHECK. Commit 9bbb6cad0173 ("ima: renameima_path_check to ima_file_check") renamed the function to ima_file_check(), but missed modifying the function name in the comment.
--- security/integrity/ima/ima_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
security/integrity/ima/ima_main.c +1 -1
@@ -482,7 +482,7 @@ int ima_bprm_check(struct linux_binprm *bprm) }/** -* ima_path_check - based on policy, collect/store measurement. +* ima_file_check - based on policy, collect/store measurement. * @file: pointer to the file to be measured * @mask: contains MAY_READ, MAY_WRITE, MAY_EXEC or MAY_APPEND *
Signature · 1 line
2.25.1
Hi Mimi,
Quoted 18 lines · Jiele Zhao
The original function name was
ima_path_check(). The policy parsing
still supportsPATH_CHECK. Commit9bbb6cad0173("ima: renameima_path_checktoima_file_check") renamed the function toima_file_check(), but missed modifying the function name in the comment.Fixes 9bbb6cad0173 ("ima: rename ima_path_check to ima_file_check").Signed-off-by Jiele Zhao <[email protected]>--- security/integrity/ima/ima_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)security/integrity/ima/ima_main.c +0
-0
security/integrity/ima/ima_main.c int ima_bprm_check(struct linux_binprm *bprm) · line 488
Quoted 8 lines
security/integrity/ima/ima_main.c +1
-1@@ -482,7 +482,7 @@ int ima_bprm_check(struct linux_binprm *bprm) }/** -* ima_path_check - based on policy, collect/store measurement. +* ima_file_check - based on policy, collect/store measurement. * @file: pointer to the file to be measured * @mask: contains MAY_READ, MAY_WRITE, MAY_EXEC or MAY_APPEND *
This is the [patch v2] based on your suggestion. Does this meet the requirements ?
Mimi Zohar
maintainerQuoted 9 lines · Jiele Zhao
The original function name was
ima_path_check(). The policy parsing
still supportsPATH_CHECK. Commit9bbb6cad0173("ima: renameima_path_checktoima_file_check") renamed the function toima_file_check(), but missed modifying the function name in the comment.Fixes 9bbb6cad0173 ("ima: rename ima_path_check to ima_file_check").Signed-off-by Jiele Zhao <[email protected]>
Thanks, Jiele.
Applied togit://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git
next-integrity
Mimi