Skip to content

Commit

Permalink
ima: Fix function name error in comment.
Browse files Browse the repository at this point in the history
The original function name was ima_path_check().  The policy parsing
still supports PATH_CHECK.   Commit 9bbb6ca ("ima: rename
ima_path_check to ima_file_check") renamed the function to
ima_file_check(), but missed modifying the function name in the
comment.

Fixes: 9bbb6ca ("ima: rename ima_path_check to ima_file_check").

Signed-off-by: Jiele Zhao <unclexiaole@gmail.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
  • Loading branch information
Jiele Zhao authored and Mimi Zohar committed Apr 9, 2021
1 parent 60c8eb3 commit 41d75dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/integrity/ima/ima_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 41d75dd

Please sign in to comment.