summaryrefslogtreecommitdiff
path: root/src/udev
Commit message (Collapse)AuthorAge
* udevd: don't fail if /run/udev existsTom Gundersen2014-09-18
|
* udev: fix typosTom Gundersen2014-09-18
| | | | Spotted by Andreas Henriksson.
* udev: ctrl - log if setting SO_PASSCRED failsTom Gundersen2014-09-18
| | | | | | No functional change. Found by Coverity. Fixes CID #1237533.
* udev: node - warn if chmod/chown failsTom Gundersen2014-09-18
| | | | | | No functional change, just log the warning. Fonud by Coverity. Fixes CID #1237544.
* udevadm: hwdb - check return value of fseeko()Tom Gundersen2014-09-18
| | | | Fonud by Coverity. Fixes CID #996255.
* udevd: check return of various functionsTom Gundersen2014-09-18
| | | | One reported by Coverity. Fixes CID #996252.
* udevd: parse_argv - warn if argumens are invalidTom Gundersen2014-09-18
| | | | Found by Coverity. Fixes CID #1238780.
* udev: link-config: remove unneded linux/netdevice.h includeEmil Renner Berthing2014-09-18
|
* udev: fix path for database names on 'change' eventRobert Milasan2014-09-18
| | | | | | | | | | | If a device does not have a major/minor number attached, we use different database names than if it does. On "change" events, we didn't copy the devnum over, therefore, we used different paths than on 'add' or 'remove' events (where devnum was properly copied). Fix this by always copying the devnum into the udev-device. (David: added commit-log from email)
* udev: event - modernize spawn_exec()Tom Gundersen2014-09-17
|
* udev: event - explicitly don't read() from invalid fdTom Gundersen2014-09-17
| | | | This fixes CID #1237641.
* udev: event - modernize spawn_read()Tom Gundersen2014-09-17
|
* udev: rules - close empty fileTom Gundersen2014-09-17
| | | | | | If the file is found to be empty, we exit early without closing the file first. Found by coverity. Fixes CID #1237759.
* udev: rules - add missing whitespace to log messageTom Gundersen2014-09-16
|
* udevd: use safe_ato*() in place of strto*()Tom Gundersen2014-09-16
|
* libudev: util - drop util_delete_path()Tom Gundersen2014-09-16
| | | | Use rmdir_parents() from src/shared instead.
* libudev: drop util_lookup_{user,group}Tom Gundersen2014-09-16
| | | | | Use shared versions instead. Difference is with overwriting of repeated user/group name, and lack of logging.
* udev: apply permissions to static nodes before signallying READYTom Gundersen2014-09-16
| | | | | Processes expecting static nodes to have the right permissions may order themselves after systemd-udevd.service, make sure that actually guarantees what is expected.
* udev: only print after final log level has been determinedTom Gundersen2014-09-16
| | | | | This delays label_init(), and drops the (duplicate) printing of version information.
* udevd: initialize epoll_event structs on allocationTom Gundersen2014-09-16
| | | | Also move the rest of event initialization next to the event loop (no functional change).
* udev: don't close std{in,out,err}Tom Gundersen2014-09-16
| | | | | Rather than printing debug output to stderr and redirecting this to /dev/null when not wanted, use the correct log_*() function in the first place.
* udev: drop duplicate loggingTom Gundersen2014-09-16
| | | | | Once upon a time logging during early boot was unreliable, so extra logging messages were sent by udev to stderr. That is no longer a concern, so drop all fprintf() calls from udved.
* udev: split out parse_argv()Tom Gundersen2014-09-16
| | | | Also rename some global variables to arg_* to make it clearer where they come from.
* udev: split out help and modernise a bitTom Gundersen2014-09-16
|
* udev: timeout - warn after a third of the timeout before killingTom Gundersen2014-09-11
|
* udev: allow removing tags via TAG-="foobar"David Herrmann2014-09-11
| | | | | | | | | | This extends the udev parser to support OP_REMOVE (-=) and adds support for TAG-= to remove previously set tags. We don't fail if the tag didn't exist. This is pretty handy if we ship default rules for seat-assignments and users want to exclude specific devices from that. They can easily add rules that drop any automatically added "seat" tags again.
* udev: timeout - increase timeoutTom Gundersen2014-09-10
| | | | | | Some kernel modules still take more than one minute to insmod, we no longer rely on the timeout killing insmod within a given period of time, so just bump this to a much higher value. Its only purpose is to make sure that nothing stays aronud forever.
* udev: fix copy-paste error in log messageTom Gundersen2014-09-10
|
* udev - drop print_kmsgTom Gundersen2014-09-09
| | | | The only remaining user was 'starting version XXX', which is now logged using log_info().
* udev: netif_rename - don't log to kmsgTom Gundersen2014-09-09
| | | | As of 3.17, the kernel will do this on its own, so just do regular log_debug() logging from udev.
* udev: net_setup_link - open ethtool and rtnl connections lazilyTom Gundersen2014-09-09
|
* udev: event - keep one rtnl per worker, rather than per eventTom Gundersen2014-09-09
| | | | | | | | Creating the rtnl context is cheap, but freeing it may not be, due to synchronous close(). Also drop some excessive logging. We now log about the changing ifname exactly once.
* udev: import the full db on MOVE events for devices without dev_tTom Gundersen2014-09-09
|
* udev: link-config - only set *name on successTom Gundersen2014-09-08
|
* udev: net_setup_link - export the .link filename applied to the linkTom Gundersen2014-09-08
|
* udev: bump event timeout to 60 secondsKay Sievers2014-08-30
|
* udev: remove userspace firmware loading supportKay Sievers2014-08-30
|
* udev: add missing new-line in udevadm errorDavid Herrmann2014-08-27
| | | | | | | fprintf() does not add new-lines automatically like log_*() does. Add the missing \n specified so "udevadm" invoked without arguments adds a newline to: udevadm: missing or unknown command
* udev: hwdb - do not look at "usb_device" parentsKay Sievers2014-08-26
| | | | | | Based on a patch from Simon McVittie <simon.mcvittie@collabora.co.uk>. Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758050
* udev: link-config - fix crash due to missing hwaddrTom Gundersen2014-08-14
| | | | Reported by: master.nosferatu@gmail.com
* networkd: link - split out dhcp4 handlingTom Gundersen2014-08-12
|
* udev: link-config - fix naming policyTom Gundersen2014-08-12
| | | | | | Don't exit the name-finding loop when the 'kernel' policy is detected. We should still find a fallback name if possible in the (very likely) case that no kernel name is set at all.
* udev: link-config - whitespaceTom Gundersen2014-08-12
| | | | Don't overflow 80 cols unneccessarily (we are ok with doing it when it improves readability, but that's not the case here).
* udev: modernize net_id builtin a bitLennart Poettering2014-08-12
|
* build-sys: add missing makefile symlinksLennart Poettering2014-08-11
|
* udev: never bypass our own logging framework and call vsyslog() directly ↵Lennart Poettering2014-08-11
| | | | from udev tools
* udev: link_setup - respect kernel name assign policyTom Gundersen2014-08-08
| | | | | | | | | Newer kernels export meta-information about the origin of an ifname. Respect this from the ifname rename logic. We do not rename any interfaces that was originally named by userspace, nor once which have already been renamed from userspace. Moreover, we optionally do not (the default) rename interfaces which the kernel claims to have named in a predictable way.
* udev-builtin-keyboard: Allow numeric key codesMartin Pitt2014-08-05
| | | | | | | Like with the old udev rules, allow hwdb entries to specify numeric key codes. Based on a patch from Mircea Miron. https://launchpad.net/bugs/1247584
* udev: path_id - suppress ID_PATH for devices with an unknown parent device typeKay Sievers2014-08-04
| | | | https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1321816
* Unify parse_argv styleZbigniew Jędrzejewski-Szmek2014-08-03
| | | | | | | | | | | | | | | | getopt is usually good at printing out a nice error message when commandline options are invalid. It distinguishes between an unknown option and a known option with a missing arg. It is better to let it do its job and not use opterr=0 unless we actually want to suppress messages. So remove opterr=0 in the few places where it wasn't really useful. When an error in options is encountered, we should not print a lengthy help() and overwhelm the user, when we know precisely what is wrong with the commandline. In addition, since help() prints to stdout, it should not be used except when requested with -h or --help. Also, simplify things here and there.