]> git.ipfire.org Git - thirdparty/util-linux.git/commit
verity: fix verity.roothashsig only working as last parameter
authorLuca Boccassi <luca.boccassi@microsoft.com>
Sun, 11 Jul 2021 17:14:40 +0000 (18:14 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Jul 2021 09:57:58 +0000 (11:57 +0200)
commitdb4d80fcefae8ca8c67f3a64efe4562b23bd5a37
tree74daccbe554596f6eba9d0b772730256b6b89962
parentd5012591611192195cd9af360f9e43e5037d081a
verity: fix verity.roothashsig only working as last parameter

Parsing of verity.roothashsig did not take into consideration that other options
might follow, and used the whole string as a file path. But mnt_optstr_get_option
just returns a pointer in the mount option string, it doesn't extract it, so it
would have other subsequent options too. The length parameter has to be used.

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
libmount/src/context_veritydev.c