cryptsetup-generator: remove warning about crypttab access mode

This file contains no privileged data — just names of devices to decrypt
and files containing keys. On a running system most of this can be inferred from
the device tree anyway.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2015-03-14 22:35:30 -04:00
parent cdd45c1ffb
commit 71e4e12584

View file

@ -374,13 +374,6 @@ static int add_crypttab_devices(void) {
return 0;
}
/* If we readd support for specifying passphrases
* directly in crypttab we should upgrade the warning
* below, though possibly only if a passphrase is
* specified directly. */
if (st.st_mode & 0005)
log_debug("/etc/crypttab is world-readable. This is usually not a good idea.");
for (;;) {
int r, k;
char line[LINE_MAX], *l, *uuid;