projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c55941
)
ima: Pass NULL instead of 0 to ima_get_action() in ima_file_mprotect()
author
Roberto Sassu
<roberto.sassu@huawei.com>
Tue, 8 Jun 2021 12:31:24 +0000
(14:31 +0200)
committer
Mimi Zohar
<zohar@linux.ibm.com>
Tue, 8 Jun 2021 20:29:10 +0000
(16:29 -0400)
This patch fixes the sparse warning:
sparse: warning: Using plain integer as NULL pointer
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_main.c
patch
|
blob
|
history
diff --git
a/security/integrity/ima/ima_main.c
b/security/integrity/ima/ima_main.c
index 906c1d8e0b71c7da6eed2e83c9d688a3ae293173..287b905090066e6f4ae3403c72580bc719b808ac 100644
(file)
--- a/
security/integrity/ima/ima_main.c
+++ b/
security/integrity/ima/ima_main.c
@@
-433,7
+433,7
@@
int ima_file_mprotect(struct vm_area_struct *vma, unsigned long prot)
inode = file_inode(vma->vm_file);
action = ima_get_action(file_mnt_user_ns(vma->vm_file), inode,
current_cred(), secid, MAY_EXEC, MMAP_CHECK,
- &pcr, &template,
0
);
+ &pcr, &template,
NULL
);
/* Is the mmap'ed file in policy? */
if (!(action & (IMA_MEASURE | IMA_APPRAISE_SUBMASK)))