[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: udev and /usr



Hi Julien!

On Mon, 07 Sep 2009, Julien Cristau wrote:

> On Mon, Sep  7, 2009 at 14:59:44 -0300, Henrique de Moraes Holschuh wrote:
> 
> > khazad-dum:~$ lsusb ; ls -l /dev/serial/by-id/*
> > Bus 004 Device 003: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA
> > Modem / E270 HSDPA/HSUPA Modem
> > lrwxrwxrwx 1 root root 13 2009-09-07 14:56
> > /dev/serial/by-id/usb-HUAWEI_Technologies_HUAWEI_Mobile-if00-port0 ->
> > ../../ttyUSB0
> > lrwxrwxrwx 1 root root 13 2009-09-07 14:56
> > /dev/serial/by-id/usb-HUAWEI_Technologies_HUAWEI_Mobile-if01-port0 ->
> > ../../ttyUSB1
> > 
> 60-persistent-serial.rules from sid's udev:
> 
> IMPORT="usb_id --export %p"
> ENV{ID_SERIAL}=="", GOTO="persistent_serial_end"
> SUBSYSTEMS=="usb", ENV{ID_IFACE}="$attr{bInterfaceNumber}"
> ENV{ID_IFACE}=="", GOTO="persistent_serial_end"
> ENV{ID_PORT}=="", SYMLINK+="serial/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$env{ID_IFACE}"
> ENV{ID_PORT}=="?*", SYMLINK+="serial/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$env{ID_IFACE}-port$env{ID_PORT}"

Yeah, and it looks like here is no problem with that because usb_id only
reads data from the kernel, and the kernel protects that data's stability
under the strong userspace ABI rules.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


Reply to: