Skip to content

feat: add FeatureIMAMeasurementActive probe#29

Merged
leodido merged 1 commit intomainfrom
ima-measurement-active
Mar 23, 2026
Merged

feat: add FeatureIMAMeasurementActive probe#29
leodido merged 1 commit intomainfrom
ima-measurement-active

Conversation

@leodido
Copy link
Owner

@leodido leodido commented Mar 23, 2026

Add a new Feature that detects whether IMA has an active measurement policy. The probe reads the runtime measurement count — a value > 1 (beyond boot_aggregate) means at least one rule is active. When the count is exactly 1, it executes /bin/true and re-reads to confirm.

Also exports ProbeIMAMeasurementActive() for direct use by consumers.

When IMA measurement is active, file hashes are cached in the inode security blob, avoiding recomputation on repeated access.

Add a new Feature that detects whether IMA has an active measurement
policy. The probe reads the runtime measurement count — a value > 1
(beyond boot_aggregate) means at least one rule is active. When the
count is exactly 1, it executes /bin/true and re-reads to confirm.

Also exports ProbeIMAMeasurementActive() for direct use by consumers.

When IMA measurement is active, file hashes are cached in the inode
security blob, avoiding recomputation on repeated access.
@leodido leodido self-assigned this Mar 23, 2026
@leodido leodido merged commit b2d9c87 into main Mar 23, 2026
5 checks passed
@leodido leodido deleted the ima-measurement-active branch March 23, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant