[pkg-cryptsetup-devel] Bug#1006802: cryptdisks_stop should process crtypttab entries in reverse order
Guilhem Moulin
guilhem at debian.org
Sat Mar 5 16:17:07 GMT 2022
Control: retitle -1 `/etc/init.d/cryptdisks stop` should safely traverse nested block device stacks
Control: tag -1 - moreinfo
On Sat, 05 Mar 2022 at 16:54:07 +0100, Guenther Brunthaler wrote:
> which is exactly the same as do_start() does. And hence the entries are
> processed in the same order instead of the reverse order, which then
> leads to the problem.
For do_start() we're reading crypttab(5) sequentially as we don't have
enough information about nesting, however for do_stop() we have that
information in the mapping table, so no need to reverse crypttab(5)
entries or guess nesting. I need to do some tests but I guess running
foreach_cryptdev() in the callback should be enough.
--
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-cryptsetup-devel/attachments/20220305/6488bac5/attachment.sig>
More information about the pkg-cryptsetup-devel
mailing list