ctc-oss / fapolicy-analyzer

Tools to assist with the configuration and management of fapolicyd.
https://ctc-oss.github.io/fapolicy-analyzer
GNU General Public License v3.0
12 stars 5 forks source link

IMA support #826

Open jw3 opened 1 year ago

jw3 commented 1 year ago

Add IMA support by reading hashes from file attributes.

from fapolicyd docs

The second mode is based on using IMA to calculate sha256 hashes and make them
available through extended attributes. This incurs only the overhead of calling
fgetxattr which is fast since there is no path name resolution. The file system
must support i_version. For XFS, this is enabled by default. For other file
systems, this means you need to add the i_version mount option. In either
case, IMA must be setup appropriately.

Taken in context this is an additive check for us. We currently check both file size and hash, which are independent integrity modes for fapolicyd. So this would be an additional concurrent check alongside those.