Re: [PATCH] ima: process_measurement() needlessly takes inode_lock() on MAY_READ

2025-03-25 Thread Frederick Lawler
My mistake, this is PATCH v2. I forgot to change the subject in git send-email. I can resend if that's needed.

[PATCH] ima: process_measurement() needlessly takes inode_lock() on MAY_READ

2025-03-25 Thread Frederick Lawler
m for extremely heavy read-only workloads. Therefore, prevent this only in the case there's no action to be taken. Signed-off-by: Frederick Lawler --- Changes since v1: - Add MAY_WRITE && action check to violation_check to avoid MAY_READ only situations --- security/integrity/ima/ima

[PATCH v3] ima: process_measurement() needlessly takes inode_lock() on MAY_READ

2025-03-27 Thread Frederick Lawler
m for extremely heavy read-only workloads. Therefore, prevent this only in the case there's no action to be taken. Signed-off-by: Frederick Lawler --- Changes since v2: - s/mask & MAY_WRITE/file->f_mode & FMODE_WRITE/ Changes since v1: - Add MAY_WRITE && action check to viol