Commit Graph
618 Commits
Author SHA1 Message Date
Martin Pitt eb20485b40 udev-acl: Manage hplip device permissions
hplip tools need user access to the devices for checking ink levels and
user-level configuration. This was formerly done with hal FDIs.

As per discussion with Till Kamppeter.
2009-06-19 14:49:35 +02:00
Kay Sievers 3b338b6bb9 extras/keymap: install findkeyboards in /lib/udev 2009-06-19 11:48:04 +02:00
Kay Sievers bcee964977 extras: delete man pages for private udev tools
These are mostly dummy man pages, without real content, some even
outdated. None of these tools are part of any offered public interface,
and they should not pretend to be by offering a man page.
2009-06-17 21:57:40 +02:00
Martin Pitt 2719cef56f keymap: Update findkeyboard path in docs
findkeyboards is now in /usr/share/udev/ after the migration to udev proper.
Update path in README.keymap.txt.
2009-06-17 16:57:30 +02:00
Kay Sievers d0d3183278 extras/keymap: use LIBEXECDIR instead /lib/udev 2009-06-17 16:18:04 +02:00
Dan Williams 181368a3b2 extras/modem-modeswitch: move from udev-extras 2009-06-17 12:16:54 +02:00
Martin Pitt 0fb7c51846 extras/keymap: Fix WLAN button on ThinkPads
Fn+F5 was previously assigned to "radio" which is fairly useless under X.
Switch it to "wlan".

Reported in http://bugs.debian.org/504643
2009-06-17 12:06:33 +02:00
Martin Pitt 2417dc20f5 keymap: move from udev-extras 2009-06-17 11:56:52 +02:00
Kay Sievers 6133f3432f cleanup ./configure installation directory options 2009-06-17 02:25:07 +02:00
Lennart Poettering ccba91c746 usb-db: move from udev-extras 2009-06-16 20:57:28 +02:00
Kay Sievers 446f931816 v4l_id: 70-v4l.rules -> 60-persistent-v4l.rules 2009-06-16 20:13:17 +02:00
Kay Sievers c283f81cb7 gudev: fix typo in configure option 2009-06-16 19:56:31 +02:00
Mario Limonciello be51950dc4 hid2hci: move from udev-extras 2009-06-16 19:30:22 +02:00
Kay Sievers c5a9680ee7 v4l_id: move from udev-extras 2009-06-16 18:41:05 +02:00
Kay Sievers fc04059abf udev-acl: handle missing action when called in CK mode 2009-06-16 18:11:40 +02:00
David Zeuthen bf05675a20 gudev: move from udev-extras
GObject libudev access. Initial version from Bastien Nocera, current
version by David Zeuthen.
2009-06-16 17:52:15 +02:00
Kay Sievers af23b83ea7 udev-acl: move from udev-extras
The build of extras with larger external dependencies is wrapped in:
      --enable-extras
2009-06-16 17:43:12 +02:00
Kay Sievers 045a3bc89e USE_LOG -> ENABLE_LOGGING, DEBUG -> ENABLE_DEBUG, USE_SELINUX -> WITH_SELINUX 2009-06-14 17:53:15 +02:00
Kay Sievers 44b49d3736 move common stuff from udev/ to private parts of libudev/ 2009-06-09 23:05:25 +02:00
Kay Sievers 9060b066d9 move syslog wrapper to libudev 2009-06-09 22:47:48 +02:00
Kay Sievers 48a9b173e8 libudev: move to top-level directory 2009-06-08 21:36:06 +02:00
Kay Sievers 67dd1cdf9d path_id: rename scsi sub-fuctions 2009-06-08 19:22:53 +02:00
Kay Sievers 33a7615943 path_id: delete old shell script
Removed with this is SAS disk support which never really worked properly,
and legacy IDE disk support, which can be re-implemented if needed.
2009-06-08 16:51:13 +02:00
Kay Sievers a2fe9450bb path_id: add iscsi support 2009-06-08 16:48:27 +02:00
Kay Sievers 7f011f6bf2 path_id: handle fibre channel 2009-06-08 14:56:49 +02:00
Kay Sievers 93ee84ce07 fix signed/unsigned warning 2009-06-06 21:19:56 +02:00
Kay Sievers ffd0afe8a9 path_id: add comments 2009-06-06 20:36:46 +02:00
Kay Sievers c122b6fadf path_id: update SCSI handling 2009-06-06 20:30:56 +02:00
Kay Sievers 185ea6a76d path_id: implement in C using libudev 2009-06-06 16:07:06 +02:00
Kay Sievers e91ac78ffc cdrom_id: add error message if open() fails 2009-05-29 13:21:38 +02:00
Kay Sievers d3c8231e73 cdrom_id: suppress ID_CDROM_MEDIA_STATE=blank for plain non-writable CDROM media
Some broken fake cdrom drives return ID_CDROM_MEDIA_STATE=blank.

  $ /lib/udev/cdrom_id -d /dev/sr1
  main: probing: '/dev/sr1'
  cd_inquiry: INQUIRY: [Nokia   ][S60             ][1.0 ]
  cd_profiles: GET CONFIGURATION: number of profiles 76
  cd_profiles: current profile 0x08
  cd_media_toc: READ TOC: len: 12
  cd_media_toc: last track 1 starts at block 0
  cd_media_info: disk type 00
  ID_CDROM=1
  ID_CDROM_MRW=1
  ID_CDROM_MRW_W=1
  ID_CDROM_MEDIA=1
  ID_CDROM_MEDIA_CD=1
  ID_CDROM_MEDIA_STATE=blank

Others work fine, but ID_CDROM_MEDIA_STATE is not needed for non-writable CDROM media:

  $ /lib/udev/cdrom_id -d /dev/sr1
  main: probing: '/dev/sr1'
  cd_inquiry: INQUIRY: [SanDisk ][U3 Cruzer Micro ][8.02]
  cd_profiles: GET CONFIGURATION: number of profiles 72
  cd_profiles: current profile 0x08
  cd_media_toc: READ TOC: len: 20
  cd_media_toc: track=1 info=0x4(data) start_block=0
  cd_media_toc: last track 1 starts at block 0
  cd_media_info: disk type 00
  ID_CDROM=1
  ID_CDROM_MRW=1
  ID_CDROM_MRW_W=1
  ID_CDROM_MEDIA=1
  ID_CDROM_MEDIA_CD=1
  ID_CDROM_MEDIA_STATE=complete
  ID_CDROM_MEDIA_SESSION_COUNT=1
  ID_CDROM_MEDIA_TRACK_COUNT=1
  ID_CDROM_MEDIA_TRACK_COUNT_DATA=1
2009-05-26 00:50:45 +02:00
Kay Sievers eba87f55f6 edd_id: use openat() 2009-05-20 18:10:26 +02:00
Kay Sievers 065db05221 use more efficient string copying 2009-05-20 17:57:52 +02:00
Kay Sievers b4fa1b67f8 rule-generator: cd - skip by-path links if we create by-id links 2009-05-14 12:57:19 +02:00
Kay Sievers 3de63a356f delete libvolume_id 2009-05-12 13:28:01 +02:00
Kay Sievers f07996885d delete vol_id and require util-linux-ng's blkid 2009-05-11 04:12:23 +02:00
Lubomir Rintel 9379b7c16d rule-generator: net - whitelist NICs that violate MAC local scheme
According to list of assigned ethernet codes [1] referred to by
IANA [2] certain global addresses do not follow the assignement
scheme and use numbers reserved for local use. Several such adapters
are quite widely used, generate rules for them.

[1] http://www.cavebear.com/archive/cavebear/Ethernet/vendor.html
[2] http://www.iana.org/assignments/ethernet-numbers
2009-05-03 15:37:30 +02:00
Kay Sievers 1f698065bc rule_generator: net - fix usb comment generation
On Sat, Apr 4, 2009 at 22:17, Omair Eshkenazi <stimpson@phys.huji.ac.il> wrote:
> I noticed that in (70-)persistent-net.rules, the comments for USB devices
> are missing the device/vendor id's. Example:
> # USB device 0x:0x (rt73usb)
2009-04-26 20:53:30 +02:00
Kay Sievers d6f0b22d57 cdrom_id: skip media tests if CDROM_DRIVE_STATUS != CDS_DISC_OK 2009-04-23 15:04:16 +02:00
John Wright a947e5eaae edd_id: add cciss devices
Since cciss devices can be BIOS boot devices just as well as sd* and
hd*, the edd_id program should be run on them so that the later
/dev/disk/by-id/edd-* rules will work.
2009-04-22 14:53:35 +02:00
Kay Sievers f907449eee cdrom_id: add and use ID_CDROM_MEDIA to decide if we run vol_id
Some broken mobile phones offer a faked cdrom drive with a media
without any tracks.
2009-04-21 03:27:14 +02:00
Kay Sievers 55d8f5e208 cdrom_id: add Xen cdrom support 2009-04-17 00:29:56 +02:00
Ian Campbell 09b2999210 path_id: support identification of Xen virtual block devices 2009-04-16 22:46:18 +02:00
Kay Sievers 241e5a21f9 usb_id: remove unused variable 2009-03-28 20:57:01 +01:00
Kay Sievers 9ae847f420 usb_id: add ID_VENDOR_ID, ID_MODEL_ID, ID_USB_INTERFACE_NUM, ID_USB_DRIVER
$ extras/usb_id/usb_id -x /class/tty/ttyUSB1
ID_VENDOR=HUAWEI_Technology
ID_VENDOR_ENC=HUAWEI\x20Technology
ID_VENDOR_ID=12d1
ID_MODEL=HUAWEI_Mobile
ID_MODEL_ENC=HUAWEI\x20Mobile
ID_MODEL_ID=1003
ID_REVISION=0000
ID_SERIAL=HUAWEI_Technology_HUAWEI_Mobile
ID_TYPE=generic
ID_BUS=usb
ID_USB_INTERFACES=:ffffff:080650:
ID_USB_INTERFACE_NUM=01
ID_USB_DRIVER=option
2009-03-25 21:24:21 +01:00
Adam Buchbinder 977f6f4b3d vol_id: fix language in manpage
The documentation for the --offset option wasn't in complete
sentences.

Signed-off-by: Adam Buchbinder <adam.buchbinder@gmail.com>
2009-03-16 23:11:02 +01:00
Adam Buchbinder 9a2773c4a4 create_floppy_devices: expand manpage
Include a table of what the CMOS types are, and note that nothing
will be created unless the -t option is specified. Also clean up
the formatting and bump the date.

Signed-off-by: Adam Buchbinder <adam.buchbinder@gmail.com>
2009-03-16 23:10:15 +01:00
Adam Buchbinder 57a9e68eb7 cdrom_id: update manpage
Include usage information on the -d/--debug flag. Also bump the date.

Signed-off-by: Adam Buchbinder <adam.buchbinder@gmail.com>
2009-03-16 23:09:52 +01:00
Adam Buchbinder 57df0207aa usb_id: add manpage
Signed-off-by: Adam Buchbinder <adam.buchbinder@gmail.com>
2009-03-16 23:09:32 +01:00
Kay Sievers 1597517c9e volume_id: ntfs - fix uuid setting
In my scenario, the ntfs prober did *not* detect the presence of a
ntfs filesystem (i.e. vol_id --probe-all returned *only* ext3).
However, if you examine the source of the ntfs prober, it overwrites
the uuid field of the volume_id object long before it actually
decides there's a valid filesystem there - this resulted in vol_id
returning the rather bizarre combination of type=ext3, but a uuid
populated by the ntfs prober.

https://bugs.edge.launchpad.net/ubuntu/+source/udev/+bug/337015
2009-03-03 20:11:09 +01:00