[dm-devel] [PATCH v2] dm ima: updates to grammar and some details in documentation

Randy Dunlap rdunlap at infradead.org
Wed Jan 12 16:30:02 UTC 2022


Hi--

On 1/12/22 06:42, Thore Sommer wrote:
> The grammar for the events dm_device_remove, device_resume and
> dm_table_clear did not include the no_data entry when device data
> and hash are missing.
> 
> For the device uuid or name "=" is also escaped with a "\".
> 
> Add a note that dm_table_load might split its target measurements over
> multiple IMA events.
> 
> Signed-off-by: Thore Sommer <public at thson.de>
> ---
> v2:
> - include also device name and uuid in grammar for no_data
> - fixed spelling mistakes
> 
>  .../admin-guide/device-mapper/dm-ima.rst      | 32 +++++++++++++++----
>  1 file changed, 26 insertions(+), 6 deletions(-)
> 
> diff --git a/Documentation/admin-guide/device-mapper/dm-ima.rst b/Documentation/admin-guide/device-mapper/dm-ima.rst
> index a4aa50a828e0..ef386a71e015 100644
> --- a/Documentation/admin-guide/device-mapper/dm-ima.rst
> +++ b/Documentation/admin-guide/device-mapper/dm-ima.rst

> @@ -118,9 +121,9 @@ The IMA measurement log has the following format for 'dm_table_load':
>   device_minor := "minor=" <N>
>   minor_count := "minor_count=" <N>
>   num_device_targets := "num_targets=" <N>

These 2 changes still need a space before the '=',

> - dm-device-name := Name of the device. If it contains special characters like '\', ',', ';',
> + dm-device-name := Name of the device. If it contains special characters like '\', ',', ';','=',
>                     they are prefixed with '\'.
> - dm-device-uuid := UUID of the device. If it contains special characters like '\', ',', ';',
> + dm-device-uuid := UUID of the device. If it contains special characters like '\', ',', ';','=',
>                     they are prefixed with '\'.
>  
>   table_load_data := <target_data>


-- 
~Randy




More information about the dm-devel mailing list