[pkg-cryptsetup-devel] any reason why askpas blocks all signals?

Christoph Anton Mitterer calestyo at scientia.net
Mon Oct 11 02:21:12 BST 2021


Hey.

I've just wondered whether there's any reason why askpass blocks all
(blockable) signals?

        sigfillset(&sigset);
        sigprocmask(SIG_BLOCK, &sigset, NULL);


It's not really a big issue for me so I'm happy if you want to leave
it.

What I want to do is, using it in a keyscript (for querying the
passphrase) but with timeout(1) ahead.

As I said, no big problem for me, since I can simply use timeout's --
kill-after= option.
But it also disables e.g. interactive Ctrl-C, so one cannot directly
abort the keyscript (of course one can just enter an empty/wrong
password).

Perhaps it would make sense to allow TERM, INT and maybe HUP?


Cheers,
Chris.



More information about the pkg-cryptsetup-devel mailing list