1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

cryptsetup: downgrade world-writable warning again

This semi-reverts 8973790ee6.
This commit is contained in:
Lennart Poettering 2013-05-03 15:25:44 +02:00
parent 19aa7c4fef
commit 2b68185ac9

View File

@ -377,8 +377,12 @@ int main(int argc, char *argv[]) {
goto next;
}
/* If we readd support for specifying passphrases
* directly in crypttabe we should upgrade the warning
* below, though possibly only if a passphrase is
* specified directly. */
if (st.st_mode & 0005)
log_warning("/etc/crypttab is world-readable. This is usually not a good idea.");
log_debug("/etc/crypttab is world-readable. This is usually not a good idea.");
for (;;) {
char line[LINE_MAX], *l;