From: Zbigniew Jędrzejewski-Szmek Date: Sun, 15 Mar 2015 02:35:30 +0000 (-0400) Subject: cryptsetup-generator: remove warning about crypttab access mode X-Git-Tag: v219.0~300 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=71e4e1258436e7e81d772aed52a02bb5d9c87cb8;p=elogind.git 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. --- diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c index 5a0611afb..5d234e6a5 100644 --- a/src/cryptsetup/cryptsetup-generator.c +++ b/src/cryptsetup/cryptsetup-generator.c @@ -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;