projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7cecb6
)
ima: Use inode_is_open_for_write
author
Nikolay Borisov
<nborisov@suse.com>
Tue, 11 Dec 2018 08:31:40 +0000
(10:31 +0200)
committer
Mimi Zohar
<zohar@linux.ibm.com>
Thu, 13 Dec 2018 03:09:34 +0000
(22:09 -0500)
Use the aptly named function rather than open coding the check. No
functional changes.
Signed-off-by: Nikolay Borisov <nborisov@suse.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
df0b2ee
..
bd9bd5f
100644
(file)
--- a/
security/integrity/ima/ima_main.c
+++ b/
security/integrity/ima/ima_main.c
@@
-103,7
+103,7
@@
static void ima_rdwr_violation_check(struct file *file,
} else {
if (must_measure)
set_bit(IMA_MUST_MEASURE, &iint->atomic_flags);
- if (
(atomic_read(&inode->i_writecount) > 0
) && must_measure)
+ if (
inode_is_open_for_write(inode
) && must_measure)
send_writers = true;
}