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.

Attachment: signature.asc
Description: PGP signature

Reply via email to