Skip to content

ENT-13774: Added inventory-fde to inventory full disk encryption#121

Merged
nickanderson merged 1 commit intocfengine:masterfrom
nickanderson:ENT-13744/master
Feb 12, 2026
Merged

ENT-13774: Added inventory-fde to inventory full disk encryption#121
nickanderson merged 1 commit intocfengine:masterfrom
nickanderson:ENT-13744/master

Conversation

@nickanderson
Copy link
Member

New module that detects full disk encryption on Linux. It checks for mounted dm-crypt volumes (LUKS1, LUKS2, plain) and reports whether encryption is enabled, what method is used, and which volumes are encrypted.

Instead of shelling out to dmsetup and findmnt, it reads directly from /sys/block/ and /proc/mounts, which is cheaper and avoids the dependency on those tools being installed.

Copy link
Contributor

@craigcomstock craigcomstock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs just a "touch" of refinement to reflect "full" instead of "some" disk encryption I think.

Copy link
Contributor

@craigcomstock craigcomstock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweet, looks good! maybe add a !linux report that reminds the user that this module only works on linux?

Detects mounted dm-crypt volumes (LUKS1, LUKS2, plain) on Linux by
reading /sys/block/ and /proc/mounts. Reports whether all, some, or no
non-virtual block device filesystems are encrypted.

Ticket: ENT-13744
Changelog: title
@nickanderson nickanderson merged commit dd677fe into cfengine:master Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants