mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ima: rename ima_path_check to ima_file_check
ima_path_check actually deals with files! call it ima_file_check instead. Signed-off-by: Eric Paris <[email protected]> Acked-by: Mimi Zohar <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
54bb6552bd
commit
9bbb6cad01
4 changed files with 8 additions and 8 deletions
|
|
@ -1736,7 +1736,7 @@ do_last:
|
|||
if (nd.root.mnt)
|
||||
path_put(&nd.root);
|
||||
if (!IS_ERR(filp)) {
|
||||
error = ima_path_check(filp, acc_mode);
|
||||
error = ima_file_check(filp, acc_mode);
|
||||
if (error) {
|
||||
fput(filp);
|
||||
filp = ERR_PTR(error);
|
||||
|
|
@ -1796,7 +1796,7 @@ ok:
|
|||
}
|
||||
filp = nameidata_to_filp(&nd);
|
||||
if (!IS_ERR(filp)) {
|
||||
error = ima_path_check(filp, acc_mode);
|
||||
error = ima_file_check(filp, acc_mode);
|
||||
if (error) {
|
||||
fput(filp);
|
||||
filp = ERR_PTR(error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue