Skip to contentSkip to conversation

ima: Fix function name error in comment.

PATCH Superseded Jiele Zhao 2 participants 3 messages Mar 23, 2021 – Mar 31, 2021

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jiele Zhao

author
#0 lore raw

PATCH 1/1 ima: Fix function name error in comment.

Function "ima_file_check" is written as "ima_path_check" in the comment. Fix this error to prevent misunderstanding.

---
 security/integrity/ima/ima_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/integrity/ima/ima_main.c +1 -1
index 9ef748ea829f..03bef720ab44 100644
@@ -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
maintainer
#1 lore raw

Hi Jiele,

Quoted 4 lines · Jiele Zhao

Function "ima_file_check" is written as "ima_path_check" in the comment. Fix this error to prevent misunderstanding.

The original function name was ima_path_check(). The policy parsing
still supports PATH_CHECK. Commit 9bbb6cad0173 ("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.

Please update this patch description accordingly and add the "Fixes" tag.

thanks,

Mimi

author
#2 lore raw
In reply to Jiele Zhao

Ping.

Quoted 21 lines · Jiele Zhao

Function "ima_file_check" is written as "ima_path_check" in the comment. Fix this error to prevent misunderstanding.

---
  security/integrity/ima/ima_main.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
security/integrity/ima/ima_main.c +1 -1
index 9ef748ea829f..03bef720ab44 100644
@@ -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
   *