mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-20 08:42:06 +00:00
Merge tag 'integrity-6.15-rc3-fix' of https://github.com/linux-integrity/linux
Pull integrity fix from Roberto Sassu: "One performance fix to avoid unnecessarily taking the inode lock" * tag 'integrity-6.15-rc3-fix' of https://github.com/linux-integrity/linux: ima: process_measurement() needlessly takes inode_lock() on MAY_READ
This commit is contained in:
@@ -245,7 +245,9 @@ static int process_measurement(struct file *file, const struct cred *cred,
|
||||
&allowed_algos);
|
||||
violation_check = ((func == FILE_CHECK || func == MMAP_CHECK ||
|
||||
func == MMAP_CHECK_REQPROT) &&
|
||||
(ima_policy_flag & IMA_MEASURE));
|
||||
(ima_policy_flag & IMA_MEASURE) &&
|
||||
((action & IMA_MEASURE) ||
|
||||
(file->f_mode & FMODE_WRITE)));
|
||||
if (!action && !violation_check)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user