chiark / gitweb /
cryptsetup-generator: remove warning about crypttab access mode
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 15 Mar 2015 02:35:30 +0000 (22:35 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 15 Mar 2015 03:03:44 +0000 (23:03 -0400)
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.

src/cryptsetup/cryptsetup-generator.c

index 5a0611afbbb4ad7650f1c35d534504c3dd8d87ad..5d234e6a5a30d4bebe0e07c6d7ac195cc93f235c 100644 (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;