]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: warn on rules files with weird access modes
authorLennart Poettering <lennart@poettering.net>
Mon, 29 Jul 2019 13:59:20 +0000 (15:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 29 Jul 2019 16:51:38 +0000 (18:51 +0200)
src/udev/udev-rules.c

index 64b0b9b102061e2f8467b9b33e1e9422995e662b..3473a7eb7e5bc1ca2f7e2cde267dcf5d2079d927 100644 (file)
@@ -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;