summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-07-29 20:44:39 +0200
committerGitHub <noreply@github.com>2019-07-29 20:44:39 +0200
commitb8011ae2f89bbd131f5348f162f23c01865669b3 (patch)
tree2d9cd763d89418e8ceef30c1a61653c416eae033
parent73697a31d53e8a6ebbc337b4588fe0368485bc1a (diff)
parent9aac172f706a3e0d1e255cf7e1e70de2e01be54f (diff)
downloadsystemd-b8011ae2f89bbd131f5348f162f23c01865669b3.tar.gz
Merge pull request #13217 from poettering/TODO-updates
udev: warn if rules files are executable
-rw-r--r--TODO8
-rw-r--r--src/udev/udev-rules.c2
2 files changed, 4 insertions, 6 deletions
diff --git a/TODO b/TODO
index ba3e7cf8f5..b10eafe663 100644
--- a/TODO
+++ b/TODO
@@ -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
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index 64b0b9b102..3473a7eb7e 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;