summaryrefslogtreecommitdiff
path: root/src/libudev
Commit message (Collapse)AuthorAge
* libudev: private - drop some functions from the internal APITom Gundersen2015-01-26
|
* libudev: monitor - move nulstr parsing to libudev-deviceTom Gundersen2015-01-26
| | | | Hide the details a bit.
* udev: event - introduce and use internal udev_device_shallow_clone()Tom Gundersen2015-01-26
|
* udev: event - move renaming of udev_device to libudevTom Gundersen2015-01-26
| | | | | This is not exposed in the public API. We want to simplify the internal libudev-device API as much as possible so that it will be simpler to rip the whole thing out in the future.
* Assorted format fixesZbigniew Jędrzejewski-Szmek2015-01-22
| | | | | Types used for pids and uids in various interfaces are unpredictable. Too bad.
* Add initialization helper for file_handle_unionZbigniew Jędrzejewski-Szmek2015-01-18
|
* libudev: fix check for too long packetTopi Miettinen2015-01-18
| | | | | | | Don't use recvmsg(2) return value to check for too long packets (it doesn't work) but MSG_TRUNC flag. (David: add parantheses around condition)
* libudev: fix strict aliasing violationShawn Paul Landden2014-12-25
|
* udev: builtin-hwdb - port to sd-hwdbTom Gundersen2014-12-15
|
* hwdb: FOREACH_HWDB_PROPERTY -> SD_HWDB_FOREACH_PROPERTYDavid Herrmann2014-12-12
| | | | | Lets not pollute the global namespace. Prefix all our exported names and macros with SD_HWDB_*.
* use correct format typesThomas Hindoe Paaboel Andersen2014-12-11
|
* libudev: make libudev-hwdb a wrapper around sd-hwdbTom Gundersen2014-12-11
|
* libudev: set errno properly in all error conditions of ↵Lennart Poettering2014-12-03
| | | | udev_device_new_from_syspath()
* treewide: another round of simplificationsMichal Schmidt2014-11-28
| | | | | Using the same scripts as in f647962d64e "treewide: yet more log_*_errno + return simplifications".
* treewide: use log_*_errno whenever %m is in the format stringMichal Schmidt2014-11-28
| | | | | | | | | | | If the format string contains %m, clearly errno must have a meaningful value, so we might as well use log_*_errno to have ERRNO= logged. Using: find . -name '*.[ch]' | xargs sed -r -i -e \ 's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/' Plus some whitespace, linewrap, and indent adjustments.
* treewide: drop unnecessary trailing \n in log_*() callsMichal Schmidt2014-11-28
|
* udev: move global property handling from libudev to udevdKay Sievers2014-11-13
|
* udev: switch to systemd logging functionsKay Sievers2014-11-13
|
* libudev: we do not log errors from librariesKay Sievers2014-11-13
|
* udev: use the systemd logging functions in udev toolsKay Sievers2014-11-12
|
* udev hwdb: Change error message regarding missing hwdb.bin back to debug.Colin Guthrie2014-11-05
| | | | | | | | | When used in an initramfs, it's expected that the hwdb.bin file is not present (it makes for a very large initramfs otherwise). While it's nice to tell the user about this, as it's not strictly speaking an error we really shouldn't be so forceful in our reporting.
* libudev: Use correct free functionColin Walters2014-11-01
| | | | | | | FILE * wants cleanup_fclose(). Spotted by udev hwdb segfaulting in gnome-continuous' buildroot construction.
* Use log "level" instead of "priority"Zbigniew Jędrzejewski-Szmek2014-11-01
| | | | | | | | | | | | The term "priority" is misleading because higher levels have lower priority. "Level" is clearer and shorter. This commit touches only the textual descriptions, not function and variable names themselves. "Priority" is used in various command-line switches and protocol constants, so completly getting rid of "priority" is hard. I also left "priority" in various places where the clarity suffered when it was removed.
* libudev: do not accept invalid log levelsZbigniew Jędrzejewski-Szmek2014-11-01
| | | | | | Invalid log levels lead to a assert failure later on. https://bugs.freedesktop.org/show_bug.cgi?id=85657
* libudev: modernizationZbigniew Jędrzejewski-Szmek2014-11-01
| | | | This brings udev logging style a bit closer to normal systemd convention.
* udev hwdb: Support shipping pre-compiled database in system imagesMartin Pitt2014-10-28
| | | | | | | | | | | | | | | | In some cases it is preferable to ship system images with a pre-generated binary hwdb database, to avoid having to build it at runtime, avoid shipping the source hwdb files, or avoid storing large binary files in /etc. So if hwdb.bin does not exist in /etc/udev/, fall back to looking for it in UDEVLIBEXECDIR. This keeps the possibility to add files to /etc/udev/hwdb.d/ and re-generating the database which trumps the one in /usr/lib. Add a new --usr flag to "udevadm hwdb --update" which puts the database into UDEVLIBEXECDIR. Adjust systemd-udev-hwdb-update.service to not generate the file in /etc if we already have it in /usr.
* 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)
* libudev: monitor - warn if we fail to request SO_PASSCREDTom Gundersen2014-09-18
| | | | The function still succeeds, so there is no functional change. This fixes CID #996288.
* udev: util - use log_level_from_string()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: 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 - drop print_kmsgTom Gundersen2014-09-09
| | | | The only remaining user was 'starting version XXX', which is now logged using log_info().
* libudev: fix symbol version for udev_queue_flush() and udev_queue_get_fd()Michael Biebl2014-08-30
| | | | | Those symbols were introduced in commit 14cb733684d3c3f50d088a3a370ddf8e8894dfa4 and released in v215.
* udev: never bypass our own logging framework and call vsyslog() directly ↵Lennart Poettering2014-08-11
| | | | from udev tools
* Fix misuse of uint64_t as size_tZbigniew Jędrzejewski-Szmek2014-08-03
| | | | They have different size on 32 bit, so they are really not interchangable.
* Revert "libudev: use get_*_creds from shared rather than util_lookup_*"Tom Gundersen2014-08-01
| | | | | | This reverts commit a56ba6158b9649e01226dfaf3ff7082c82571090. The commit was pushed in error.
* libudev: use get_*_creds from shared rather than util_lookup_*Tom Gundersen2014-08-01
|
* libudev: set errno when udev_device_new_from_* or udev_device_get_parent_* failTom Gundersen2014-08-01
|
* libudev: queue - watch entire directory to allow the re-use of the watch ↵Kay Sievers2014-06-27
| | | | descriptor
* libudev: queue provide file descriptor to watch busy event queueKay Sievers2014-06-27
|
* libudev: fix udev_queue_get_queue_is_empty() logicKay Sievers2014-06-27
|
* Remove unnecessary casts in printfsZbigniew Jędrzejewski-Szmek2014-05-15
| | | | No functional change expected :)
* udev: warn when name_to_handle_at is not implementedZbigniew Jędrzejewski-Szmek2014-04-24
| | | | | | | | | We have a bunch of reports from people who have a custom kernel and are confused why udev is not running. Issue a warning on error. Barring an error in the code, the only error that is possible is ENOSYS. https://bugzilla.redhat.com/show_bug.cgi?id=1072966
* util: make sure all our name_to_handle_at() code makes use of file_handle_unionLennart Poettering2014-04-24
|
* implement a union to pad out file_handleDave Reisner2014-04-21
| | | | | | | | | | Cases where name_to_handle_at is used allocated the full struct to be MAX_HANDLE_SZ, and assigned this size to handle_bytes. This is wrong since handle_bytes should describe the length of the flexible array member and not the whole struct. Define a union type which includes sufficient padding to allow assignment of MAX_HANDLE_SZ to be correct.
* udev: remove seqnum API and all assumptions about seqnumsKay Sievers2014-04-13
| | | | | | | | | | | | The way the kernel namespaces have been implemented breaks assumptions udev made regarding uevent sequence numbers. Creating devices in a namespace "steals" uevents and its sequence numbers from the host. It confuses the "udevadmin settle" logic, which might block until util a timeout is reached, even when no uevent is pending. Remove any assumptions about sequence numbers and deprecate libudev's API exposing these numbers; none of that can reliably be used anymore when namespaces are involved.
* everywhere: make use of new0() and macro() macros, and stop using perror()Lennart Poettering2014-02-13
|
* use memzero(foo, length); for all memset(foo, 0, length); callsGreg KH2014-01-31
| | | | | | | | In trying to track down a stupid linker bug, I noticed a bunch of memset() calls that should be using memzero() to make it more "obvious" that the options are correct (i.e. 0 is not the length, but the data to set). So fix up all current calls to memset(foo, 0, length) to memzero(foo, length).
* libudev: ship the original MurmurHash2.[ch] fileKay Sievers2013-12-23
|