]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ima: Add code comments to explain IMA iint cache atomic_flags
authorCoiby Xu <coxu@redhat.com>
Tue, 30 Sep 2025 02:26:57 +0000 (10:26 +0800)
committerMimi Zohar <zohar@linux.ibm.com>
Wed, 11 Mar 2026 21:28:03 +0000 (17:28 -0400)
commit5d05360d748d477acfe1f0d05593c12beb507387
treeb8b063f6d96d484e14f8ab209671c74549bc9fdc
parentd7bd8cf0b348d3edae7bee33e74a32b21668b181
ima: Add code comments to explain IMA iint cache atomic_flags

Explain these atomic flags to improve code readability. For example, the
flag IMA_DIGSIG is to indicate we mustn't update a file's security.ima
on close because the file already has IMA signature. The code comments
for the first three flags come from commit 0d73a55208e9 ("ima:
re-introduce own integrity cache lock") with a minor tweak.

Signed-off-by: Coiby Xu <coxu@redhat.com>
[zohar@linux.ibm.com: remove duplicate "integrity violation", unnecessary commas]
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima.h