Hi, 1. I do not get the idea... > ship EVM signatures in packages System up and running EVM without hmac? How it creates new files without hmac? 2. Mathew's patch is about portable signatures... not immutable And I do not get idea why they are needed if they replaced by HMAC. Practically file gets HMAC, then signature is set, and then replaced with HMAC Dmitry ________________________________________ From: Mimi Zohar [zohar@xxxxxxxxxxxxxxxxxx] Sent: Thursday, October 19, 2017 3:00 PM To: Dmitry Kasatkin; Matthew Garrett; linux-integrity@xxxxxxxxxxxxxxx Cc: Mikhail Kurinnoi Subject: Re: [PATCH] EVM: Add support for portable signature format On Thu, 2017-10-19 at 11:02 +0000, Dmitry Kasatkin wrote: > BTW. > > Just to refresh my mind. What would be the correct order for setting > this signature from package? > On any attr/xattr change, EVM will set HMAC. The system is running without an EVM symmetric key, just an asymmetric key. > What is the value of setting signature after that unless there is a > policy to require signature (immutable)? > In my original patchset portable was also immutable and also > included policy support to require EVM signatures. In Matthew's usecase scenario, only immutable and portable signatures exist. The EVM verification for unsigned files will be INTEGRITY_UNKNOWN. Mimi