From 1f57abb3091c9ceb771fb9bd32f8f66404d439e1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 29 Jul 2019 15:59:20 +0200 Subject: [PATCH] udev: warn on rules files with weird access modes --- src/udev/udev-rules.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 64b0b9b1020..3473a7eb7e5 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -1186,6 +1186,8 @@ static int parse_file(UdevRules *rules, const char *filename) { return -errno; } + (void) fd_warn_permissions(filename, fileno(f)); + if (null_or_empty_fd(fileno(f))) { log_debug("Skipping empty file: %s", filename); return 0;