[PATCH 5/5] LSM: Define workqueue for measuring security module state

Stephen Smalley stephen.smalley.work at gmail.com
Mon Jun 15 13:33:38 UTC 2020


On Fri, Jun 12, 2020 at 10:42 PM Lakshmi Ramasubramanian
<nramas at linux.microsoft.com> wrote:
>
> The data maintained by the security modules could be tampered with by
> malware. The LSM needs to periodically query the state of
> the security modules and measure the data when the state is changed.
>
> Define a workqueue for handling this periodic query and measurement.

Won't this make it difficult/impossible to predict the IMA PCR value?
Unless I missed it, you are going to end up measuring every N minutes
even if there was no change and therefore constantly be extending the
PCR.  That will break attestation or sealing against the IMA PCR.



More information about the Linux-security-module-archive mailing list