Kay Sievers
67410e9f73
hwdb: add --device=<device-id> and --filter=<key name glob>
2013-07-01 22:34:43 +02:00
Kay Sievers
3cf7b686e6
hwdb: remove support for (not fully implemented) conditional properties
2013-07-01 19:39:50 +02:00
Zbigniew Jędrzejewski-Szmek
507f22bd01
Use stdint.h macros instead of casts to print uint64_t values
...
Casts are visually heavy, and can obscure unwanted truncations.
2013-06-10 10:10:07 -04:00
Michael Biebl
b45e9abd1d
libudev: remove udev_monitor_new_from_socket() symbol
...
This function was removed in v183, so drop it from the symbols
versioning file.
2013-04-16 02:15:45 +02:00
Michael Biebl
e712ffcce6
libudev: Move -lrt to Libs.private
...
It's only needed for static linking.
https://bugs.freedesktop.org/show_bug.cgi?id=63309
2013-04-09 15:26:39 +02:00
Zbigniew Jędrzejewski-Szmek
4dd1de72e8
Remove some dead code
...
Based on coverity report.
2013-03-31 14:28:36 -04:00
Jan Engelhardt
acd42fae59
libudev: avoid potential misaligned accesses
...
clang reports:
src/libudev/libudev-util.c:665:35: warning: cast from
"const unsigned char *" to "unsigned int *" increases required alignment
from 1 to 4 [-Wcast-align]
2013-03-20 16:18:04 +01:00
Kay Sievers
53726349e1
libude: remove special handling of "device" link, it should not be used
2013-03-20 16:11:25 +01:00
Hannes Reinecke
946f182575
libudev: implement udev_device_set_attribute_value()
2013-03-13 17:44:45 +01:00
Thomas Hindoe Paaboel Andersen
090be86534
use streq instead of strcmp
2013-02-13 18:14:20 +01:00
Thomas Hindoe Paaboel Andersen
641906e936
use strneq instead of strncmp
2013-02-13 00:56:13 +01:00
Kay Sievers
beb23689e3
udev: remove HWDB_BIN
2013-02-07 21:54:49 +01:00
Kay Sievers
d5a89d7dc1
udev: move string copy functions to shared/
2013-01-09 19:06:46 +01:00
Kay Sievers
1328f66ad1
udev: net_id - append "dev_id" value if needed
2013-01-04 19:08:08 +01:00
Kay Sievers
1edefa4f1d
udev: in addition to DEVMODE, honor DEVUID, DEVGID from the uevent
2012-12-31 04:48:44 +01:00
Richard Yao
e683136da1
Fix "attribute 'packed' is ignored" warnings when using Clang
...
Clang 3.1 warned that "attribute 'packed' is ignored". This stems from
placing "__attribute__ ((packed))" at the start of structure
declarations when common practice is to place it at the end.
Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-12-17 10:43:58 +01:00
Michael Terry
e688930750
libudev: validate 'udev' argument to udev_enumerate_new()
...
https://bugs.freedesktop.org/show_bug.cgi?id=58289
2012-12-14 15:36:47 +01:00
Eric Benoit
f4443fa597
libudev: hwdb: add missing endianess conversion
...
https://bugs.freedesktop.org/show_bug.cgi?id=58067
2012-12-11 15:34:56 +01:00
Kay Sievers
5ae18ddc0d
libudev: do not resolve $attr{device} symlinks
2012-11-20 18:07:57 +01:00
Zbigniew Jędrzejewski-Szmek
ee623f0d0c
hwdb: use $(localstatedir)/lib/udev/hwdb.bin for the binary database
...
It's not configuration, so it doesn't belong in udev.
Also, remove the catalog when uninstalling udev.
2012-11-16 23:29:56 +01:00
Kay Sievers
33c770b174
udev: hwdb - properly handle a missing database
...
On Thu, Nov 15, 2012 at 5:05 PM, Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> wrote:
> Something like this appeared with latest git:
>
> Nov 15 16:55:46 fedora-15 systemd-udevd[334]: worker [364] terminated by signal 11 (Segmentation fault)
> Nov 15 16:55:46 fedora-15 [387]: Process 364 (systemd-udevd) dumped core.
> Nov 15 16:55:46 fedora-15 systemd-udevd[334]: worker [364] failed while handling '/devices/virtual/net/lo'
> Nov 15 16:55:46 fedora-15 systemd-udevd[334]: worker [360] terminated by signal 11 (Segmentation fault)
> Nov 15 16:55:46 fedora-15 systemd-udevd[334]: worker [360] failed while handling '/devices/pci0000:00/0000:00:03.0/virtio0/net
> Nov 15 16:55:46 fedora-15 [389]: Process 360 (systemd-udevd) dumped core.
>
> Core was generated by usr/lib/systemd/systemd-udevd'.
> Program terminated with signal 11, Segmentation fault.
> #0 0x0000000000423c87 in udev_hwdb_get_properties_list_entry (hwdb=0x0, modalias=0x7fffbcd155f0
2012-11-15 17:30:03 +01:00
Mauro Dreissig
cf2292f5ac
libudev: avoid leak during realloc failure
2012-11-13 01:59:33 +01:00
Kay Sievers
88a6477ef3
libudev: update copyright headers
2012-11-12 17:50:33 +01:00
Kay Sievers
40fe8b11be
udev: use usec_t and now()
2012-11-12 01:03:14 +01:00
Kay Sievers
9485d98d77
libudev: hwdb - cleanup list before getting new properties
2012-10-28 04:59:38 +01:00
Kay Sievers
ff944daa01
udev: get rid of SYSCONFDIR
2012-10-28 04:04:22 +01:00
Zbigniew Jędrzejewski-Szmek
f2d433e178
Tweak TODO
2012-10-28 02:14:41 +02:00
Kay Sievers
2001208c2a
libudev: import hwdb and export lookup interface
2012-10-27 23:39:41 +02:00
Kay Sievers
8a1733871f
udev: remove SYMLINK "unique" option
2012-10-08 21:54:39 +02:00
Václav Pavlín
029f4f21fc
libudev: check return value of rename
2012-09-23 14:24:43 +02:00
Kay Sievers
cd8651982b
libudev: remove dead code
2012-09-19 19:36:35 +02:00
Zbigniew Jędrzejewski-Szmek
4db17f291c
build-sys: __secure_getenv lost dunder in libc 2.17
2012-09-17 00:21:25 +02:00
Thomas Hindoe Paaboel Andersen
c53158818d
man: fix a bunch of typos in docs
...
https://bugs.freedesktop.org/show_bug.cgi?id=54501
2012-09-13 19:34:24 +02:00
Lennart Poettering
88fae6e044
shared: in code that might get called from suid programs use __secure_getenv() rather than getenv()
...
It's better to be safe than sorry.
2012-09-03 18:59:04 -07:00
Kay Sievers
dbf61afb29
udev: export udev_device_new_from_device_id()
2012-08-10 19:56:57 +02:00
Lennart Poettering
64825d3c58
fix a couple of issues found with llvm-analyze
2012-08-08 23:54:21 +02:00
Arvydas Sidorenko
a267bebf46
libudev-queue.c: simplified open_queue_file
...
There is no apparent justification for using util_strscpyl
on the filename since it's a plain hardcoded path.
Older versions used:
util_strscpyl(filename, sizeof(filename), SOME_DIR, "/queue.bin", NULL);
and when changed nobody bothered to simplify it.
2012-07-31 11:49:10 +02:00
Kay Sievers
4cb72937d3
udev: get rid of TEST_PREFIX and use unshare() to fake /sys, /dev, /run
2012-07-15 22:10:46 +02:00
Kay Sievers
c6eefe3664
udev: avoid creating /dev/kmsg with fopen() to support CONFIG_PRINTK=n
2012-07-14 00:33:59 +02:00
Kay Sievers
47ef94ac5f
udev: add some O_CLOEXEC
2012-07-05 17:33:24 +02:00
Kay Sievers
b30b426025
libudev: clarify that udev_monitor_receive_device() is non-blocking
...
Based on a patch from: Sam Thursfield <ssssam@gmail.com>
https://bugs.freedesktop.org/show_bug.cgi?id=51202
2012-06-18 15:58:44 +02:00
Kay Sievers
3cbd5f6be1
udev: remove remaining selinux labeling for file in /run
2012-06-05 17:31:32 +02:00
Kay Sievers
d2e54fae5c
mkdir: append _label to all mkdir() calls that explicitly set the selinux context
2012-05-31 12:40:20 +02:00
Kay Sievers
ee56538fa7
udev: silent gcc warnings
2012-05-25 14:25:46 +02:00
Kay Sievers
c195956988
udev: update docs, NEWS
2012-05-15 23:44:28 +02:00
Kay Sievers
20bbd54f60
udev: libudev - bump soname, remove deprecated functions, introduce symbol versions
2012-05-15 23:06:26 +02:00
Lucas De Marchi
b27ee00bf5
udev: use container_of() macro
2012-04-29 19:15:08 +02:00
Kay Sievers
c8f8394a93
libudev: prefix log macros with 'udev_'
2012-04-26 17:43:48 +02:00
Kay Sievers
21dbe43aec
docs: hook-up gtk-doc to 'make check'
2012-04-20 03:25:36 +02:00
Kay Sievers
e9a5ef7cdd
selinux: unify systemd and udev code
2012-04-17 16:05:28 +02:00