Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-12-24 | log: log_error() and friends add a newline after each line anyway, so avoid ↵ | Lennart Poettering | |
including it in the log strings | |||
2013-10-30 | udev: link-config - less verbose logging | Tom Gundersen | |
Also reinstate print to kmsg when renaming netif. | |||
2013-10-30 | udev: link-config - let udevd set the ifname | Tom Gundersen | |
2013-10-29 | udev-event: use rtnl to set ifname | Tom Gundersen | |
2013-10-08 | udev: support custom Linux Security Module labels for device nodes | Kay Sievers | |
2013-03-21 | udev: always set selinux label at "add" events | Kay Sievers | |
https://bugs.freedesktop.org/show_bug.cgi?id=62615 | |||
2013-02-13 | use streq instead of strcmp | Thomas Hindoe Paaboel Andersen | |
2013-01-27 | udev: set default rules permissions only at "add" events | Kay Sievers | |
2013-01-09 | udev: move string copy functions to shared/ | Kay Sievers | |
2012-12-31 | udev: in addition to DEVMODE, honor DEVUID, DEVGID from the uevent | Kay Sievers | |
2012-11-20 | udev: fix whitespace | Kay Sievers | |
2012-11-13 | udev: properly handle symlink removal by 'change' event | Kay Sievers | |
If a 'change' event is supposed to remove created symlinks, we create a new device structure from the sysfs device and fill it with the list of links, to compute the delta of the old and new list of links to apply. If the device is already 'remove'd by the kernel though, udev fails to create the device structure, so the links are not removed properly. > From: Neil Brown <nfbrown@suse.com> > Date: Thu, 8 Nov 2012 10:39:06 +0100 > Subject: [PATCH] If a 'change' event does not get handled by udev until > after the device has subsequently disappeared, udev mis-handles > it. This can happen with 'md' devices which emit a change > event and then a remove event when they are stopped. It is > normally only noticed if udev is very busy (lots of arrays > being stopped at once) or the machine is otherwise loaded > and reponding slowly. > > There are two problems. > > 1/ udev_device_new_from_syspath() will refuse to create the device > structure if the device does not exist in /sys, and particularly if > the uevent file does not exist. > If a 'db' file does exist, that is sufficient evidence that the device > is genuine and should be created. Equally if we have just received an > event from the kernel about the device, it must be real. > > This patch just disabled the test for the 'uevent' file, it doesn't > try imposing any other tests - it isn't clear that they are really > needed. > > 2/ udev_event_execute_rules() calls udev_device_read_db() on a 'device' > structure that is largely uninitialised and in particular does not > have the 'subsystem' set. udev_device_read_db() needs the subsystem > so it tries to read the 'subsystem' symlink out of sysfs. If the > device is already deleted, this naturally fails. > udev_event_execute_rules() knows the subsystem (as it was in the > event message) so this patch simply sets the subsystem for the device > structure to be loaded to match the subsystem of the device structure > that is handling the event. > > With these two changes, deleted handling of change events will still > correctly remove any symlinks that are not needed any more. Use udev_device_new() instead of allowing udev_device_new_from_syspath() to proceed without a sysfs device. | |||
2012-11-12 | use the same email address everywhere | Kay Sievers | |
2012-11-12 | udev: use usec_t and now() | Kay Sievers | |
2012-07-30 | udev: add missing newline when writing to /dev/kmsg | Kay Sievers | |
2012-07-15 | udev: get rid of TEST_PREFIX and use unshare() to fake /sys, /dev, /run | Kay Sievers | |
2012-07-14 | udev: avoid creating /dev/kmsg with fopen() to support CONFIG_PRINTK=n | Kay Sievers | |
2012-07-05 | udev: network device renaming - immediately give up if the target name isn't ↵ | Kay Sievers | |
available | |||
2012-07-05 | udev: add some O_CLOEXEC | Kay Sievers | |
2012-04-16 | udev: use startswith() and streq() | Kay Sievers | |
2012-04-16 | udev: remove configuration options for /dev, /sys, /run directories | Kay Sievers | |
2012-04-16 | udev: replace ARRAY_SIZE() with ELEMENTSOF() | Kay Sievers | |
2012-04-13 | udev: fix a few issues detected by the llvm static analyzer | Kay Sievers | |
2012-04-10 | udev: fix gcc warnings showing up after adding $(AM_CFLAGS) | Kay Sievers | |
2012-04-09 | udev: remove RUN+="socket:.." and udev_monitor_new_from_netlink() | Kay Sievers | |
2012-04-09 | udev: convert 'uaccess' to a builtin | Kay Sievers | |
2012-04-08 | udev: switch to systemd logging functions | Kay Sievers | |
2012-04-04 | move imported udev into place | Kay Sievers | |