Merge pull request #13217 from poettering/TODO-updates

udev: warn if rules files are executable
This commit is contained in:
Lennart Poettering 2019-07-29 20:44:39 +02:00 committed by GitHub
commit b8011ae2f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

8
TODO
View File

@ -83,8 +83,6 @@ Features:
* make rfkill uaccess controllable by default, i.e. steal rule from
gnome-bluetooth and friends
* warn if udev rules files are marked executable (docker?)
* tweak journald context caching. In addition to caching per-process attributes
keyed by PID, cache per-cgroup attributes (i.e. the various xattrs we read)
keyed by cgroup path, and guarded by ctime changes. This should provide us
@ -116,9 +114,6 @@ Features:
* when no locale is configured, default to UEFI's PlatformLang variable
* When logind.conf contains HandleLidSwitch=suspend-then-hibernate and we can't
hibernate because the swap partition isn't large enough, still suspend
* bootctl,sd-boot: actually honour the "architecture" key
* add a new syscall group "@esoteric" for more esoteric stuff such as bpf() and
@ -154,7 +149,8 @@ Features:
non-zero "tries done" count
* maybe set a special xattr on cgroups that have delegate=yes set, to make it
easy to mark cut points
easy to mark cut points, then use this information in "systemd-cgls" to show
them (e.g. color delegated subtrees in a different color)
* introduce an option (or replacement) for "systemctl show" that outputs all
properties as JSON, similar to busctl's new JSON output. In contrast to that

View 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;