1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 23:51:28 +03:00
Commit Graph

3549 Commits

Author SHA1 Message Date
Kay Sievers
d44c27c5ab firmware: fix possible segfault when firmware device goes away while loading
Thanks to Ruediger Oertel.
2010-03-16 10:57:44 +01:00
Adrian Bunk
b41102757d udev needs automake 1.10
extras/gudev/docs/Makefile.am:4: require Automake 1.10, but have 1.9.6
libudev/docs/Makefile.am:4: require Automake 1.10, but have 1.9.6

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-03-11 14:24:13 +01:00
Kay Sievers
9d1a67e956 libudev: docs - .gitignore backup files 2010-03-11 13:01:48 +01:00
Kay Sievers
777239cb21 use major:minor as entries in watch directory 2010-03-10 18:54:35 +01:00
Kay Sievers
af24bb178e use major:minor as entries in symlink stack instead of devpath 2010-03-10 17:29:27 +01:00
Kay Sievers
a00ff5db02 udevadm: monitor - use / as separator in --subsystem-match=subsystem[/devtype] 2010-03-10 15:00:00 +01:00
Kay Sievers
fbb31cd6e1 libbudev-private: rename udev_list_entry_get_flag() 2010-03-10 14:52:42 +01:00
Kay Sievers
455f792e47 replace utimes() with utimensat() 2010-03-10 14:43:07 +01:00
Martin Pitt
a245a97b4e input_id: Fix linking
Link against libudev-private.a instead of libudev.a, to avoid runtime
dependency to libudev.
2010-03-10 12:17:03 +01:00
Kay Sievers
9a87132677 udev-acl: no not encourage use of ACL_MANAGE outside of rules file 2010-03-07 13:47:34 +01:00
Martin Pitt
5c3ebbf35a udev-acl: Correctly handle ENV{ACL_MANAGE}==0
When a custom rule sets ACL_MANAGE to 0 to disable ACL management for a
particular device, handle this as "disabled", by explicitly checking against
"1" instead of "nonempty".

Thanks to Rafał Rzepecki for pointing this out.
2010-03-04 00:48:59 +01:00
Amit Shah
3c4b1738a9 Fix virtio-ports rule to use $attr instead of $ATTR
Newer udev versions don't understand $ATTR.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-03-04 00:39:53 +01:00
David Zeuthen
e32d5237ea Increase UTIL_LINE_SIZE from 2048 to 16384
Recent udisks versions, for LVM2 integration, ships with probers that
produce very long lines such as

UDISKS_LVM2_PV_VG_PV_LIST=
  uuid=98lyZl-Ya7U-p26Z-Ia7b-xf8u-xZqP-jc4njb;size=2000397795328;allocated_size=2000397795328
  uuid=iFs0cM-sxCF-ceQK-hZl1-kbwo-ZTjq-gSewQR;size=2000397795328;allocated_size=2000397795328
  [...]

e.g. roughly 100 bytes per LVM2 physical volume for each LVM2
PV encountered.

Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-03-02 17:11:10 -05:00
David Zeuthen
3a19299202 Use UTIL_LINE_SIZE, not UTIL_PATH_SIZE to truncate properties
Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-03-02 17:07:14 -05:00
David Zeuthen
ecd42de2c5 Decrease buffer size when advancing past NUL byte
Otherwise we'll overflow the buffer if space is tight. Also add a comment explaining this.

Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-03-02 17:06:33 -05:00
Andy Whitcroft
da96a11b9c keymap: Add Fujitsu Amilo 1848+u force-release quirk
The Fujitsu Amilo Si 1848+u laptop requires the volume and mute keys
quirking.

https://launchpad.net/bugs/530089

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-03-02 14:00:32 +01:00
Andy Whitcroft
20b48c3727 keymap: Add Samsung Q210/P210 force-release quirk
The Samsung Q210/P210 laptop also needs all of its function keys quirked.

https://launchpad.net/bugs/530093

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-03-02 13:55:03 +01:00
Kay Sievers
fff82e9d77 configure.ac: version bump 2010-02-18 11:09:25 +01:00
Kay Sievers
044bd2bcc7 udevadm: fix untested and broken commit to set buffer size 2010-02-18 11:03:28 +01:00
Kay Sievers
e0fcf21c03 libudev: bump minor version 2010-02-18 11:03:09 +01:00
Scott James Remnant
0fe3c26eab udevadm monitor: increase netlink buffer size
A common use (e.g. in Ubuntu) for udevadm monitor is to log the events
received by udev during boot; events can be lost of the buffer size isn't
increased as udevd does.

Signed-off-by: Scott James Remnant <scott@ubuntu.com>
2010-02-17 15:27:36 +00:00
Scott James Remnant
a571c23e95 libudev: export udev_monitor_set_receive_buffer_size()
This function is useful for anything that's likely to be running
alongside udevd during cold-plugging, and is using libudev to
receive the events.

It makes little sense for it to be private, or to require other
software to relearn how to adjust the buffer size.

Signed-off-by: Scott James Remnant <scott@ubuntu.com>
2010-02-17 15:26:00 +00:00
Martin Pitt
4ca91a04e8 keymap: Add Toshiba Satellite M30X
Thanks to Alessio Gaeta!

https://launchpad.net/bugs/510019
2010-02-15 13:15:25 +01:00
Jerone Young
b15bb80190 Force key release for volume keys on Dell Studio 1557
Dell Studio 1557 does not generate a release code when the volume keys
are pressed, causing them to generate infinite key presses. This forces
key release of these keys.

Signed-off-by: Jerone Young <jerone.young@canonical.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-02-13 12:53:12 +01:00
Martin Pitt
4c514e3173 keymap: Fix LG X110
The LG X110 is not a perfect clone of the MSI Wind after all, and needs its own
keymap. Thanks to Konstantin Lavrov!

https://launchpad.net/bugs/520650
2010-02-12 19:25:47 +01:00
Robert Hooker
063985ef7d keymap: Add support for Gateway AOA110/AOA150 clones.
https://launchpad.net/bugs/518496

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-02-10 11:13:06 +01:00
Martin Pitt
d7e2d38c1f Fix brightness keys on MSI Wind U-100
The MSI Wind 100 generates ACPI/input events on the LNXVIDEO input device. On
top of that, the video module/BIOS synthesize some extra event on atkbd as an
echo of actually changing the brightness.

Ignore the wrong and useless atkbd ones, to avoid event loops.

Many thanks to Hans de Goede for tracking this down!

https://launchpad.net/bugs/415023
2010-02-09 15:47:47 +01:00
Martin Pitt
fc47e0b567 keymap: Add Dell Inspiron 1011 (Mini 10)
This fixes the broken WLAN key.
2010-02-01 15:27:46 -08:00
Thomas Bächler
86a7a2f853 firmware: fix error reporting on missing firmware files
The new firmware loader does not report an error to the kernel if a firmware file
is missing. This results in modprobe stalling for 60 seconds for each firmware
a module tries to load.
2010-01-31 23:04:57 +01:00
Kay Sievers
f5846e8c22 release 151 2010-01-27 09:34:28 +01:00
Kay Sievers
5754e74c08 update tests 2010-01-27 09:30:48 +01:00
Kay Sievers
eea1fd84f0 update README and NEWS 2010-01-25 11:10:10 +01:00
Kay Sievers
26420abf54 delete outdated and unmaintained writing_udev_rules
Many statements in this document are no longer correct, or even
suggest things we do not want to support, or do not work at all
with the current version of udev.

Any new documentation should better be added to the udev man page,
which is usually kept up-to-date.
2010-01-25 10:48:04 +01:00
Kay Sievers
d8f33f0252 keymap: linux/input.h - get absolute include path from gcc 2010-01-25 08:22:47 +01:00
Kay Sievers
97411493a3 keymap: include linux/limits.h 2010-01-25 07:37:41 +01:00
Amit Shah
7b79a59b28 rules: Add symlink rule for virtio ports
virtio ports spawned by the virtio_console.c driver can have 'names'
assigned to them by hosts. The ports are distinguishable using these
names. Make a rule to create a symlink to the chardev associated for a
port with a name.

The symlink created is:
    /dev/virtio-ports/org.libvirt.console0 -> /dev/vport0p0

if the first port for the first device was given a name of
'org.libvirt.console0'.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
2010-01-21 14:21:42 +01:00
Egbert Eich
2b8a573536 rulews: suse - add do-not-load-KMS-modules rules 2010-01-21 11:38:32 +01:00
Kay Sievers
7ca9a05dca input_id: include limits.h 2010-01-21 08:46:17 +01:00
Martin Pitt
1e6cff0b3b keymap: Fix invalid map line
Fix invalid line in keymaps/lenovo-thinkpad-usb-keyboard-trackpoint which did
not assign any key to a scan code.
2010-01-21 01:10:28 +01:00
Martin Pitt
386aa6ebd8 extras/keymap/check-keymaps.sh: Ignore comment-only lines 2010-01-21 01:09:16 +01:00
Martin Pitt
9a6741ba2f keymap: move force-release directory
Move extras/keymap/keymaps/force-release/ to
extras/keymap/force-release-maps/, so that check-keymaps.sh does not stumble
over the directory. It's also a more logical source layout.
2010-01-21 00:55:59 +01:00
Martin Pitt
bba10e1c92 add ACL rule for Garmin GPSMap 60
https://qa.mandriva.com/show_bug.cgi?id=55836
2010-01-19 21:31:27 +01:00
Marco d'Itri
fc8e4dd932 keymap: support for the Samsung N140 keyboard 2010-01-19 10:43:06 +01:00
Kay Sievers
7b4038a96f clarify message about not removed device node 2010-01-15 00:32:10 +01:00
Frederic Crozat
456863e351 rules: acl - add COLOR_MEASUREMENT_DEVICE match 2010-01-14 16:12:19 +01:00
Kay Sievers
7c34949019 libudev: device - create db file atomically
We need to prevent that libudev parses half-written database files.

Also for "change" events, we need to make sure, that database files
always exist to be read by libudev, and that they are not first deleted
before they are re-created.
2010-01-13 13:26:56 +01:00
Kay Sievers
889dd1061c do not remove device nodes of active kernel devices
We do no longer delete the primary device node while handling "remove"
events if the same kernel device is already re-created in the meantime.
This prevents the asynchronously running udev from removing and re-creating
primary device nodes for active devices.
2010-01-13 13:18:14 +01:00
Kay Sievers
6f1892dc7a udevd: inotify - do not parse rules at create but at close
We do not need to get notified about created files, only about moved
ones or files closed-after-writing.
2010-01-13 13:09:02 +01:00
Kay Sievers
a16b18f091 configure.ac: version bump 2010-01-13 12:59:37 +01:00
Marco d'Itri
390312b8ed writing_udev_rules: update rules files names 2010-01-11 11:55:50 +01:00