Bug#339669: udev: bad permissions at startup for usb scanner

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#339669: udev: bad permissions at startup for usb scanner

gpe92
Package: udev
Version: 0.074-2
Severity: important

Since hotplug has been removed the permissions for the usb scanner are
bad after the boot.
If after the boot I unplug/plug the scanner the permission becomes good.

-- Package-specific info:
-- /etc/udev/rules.d/:
/etc/udev/rules.d/:
total 8
lrwxrwxrwx  1 root root  20 2005-04-24 22:41 020_permissions.rules -> ../permissions.rules
lrwxrwxrwx  1 root root  19 2005-10-26 18:25 025_libgphoto2.rules -> ../libgphoto2.rules
lrwxrwxrwx  1 root root  16 2005-10-11 00:50 025_libsane.rules -> ../libsane.rules
lrwxrwxrwx  1 root root  12 2005-11-03 21:16 050_hal-plugdev.rules -> ../hal.rules
-rw-r--r--  1 root root 120 2005-02-12 11:42 10-wacom.rules
lrwxrwxrwx  1 root root  19 2004-12-14 22:04 cd-aliases.rules -> ../cd-aliases.rules
-rw-r--r--  1 root root  56 2005-09-21 22:52 mga_vid.rules
lrwxrwxrwx  1 root root  13 2004-12-14 22:04 udev.rules -> ../udev.rules
lrwxrwxrwx  1 root root  19 2005-09-15 00:53 z20_persistent.rules -> ../persistent.rules
lrwxrwxrwx  1 root root  12 2005-09-15 00:53 z50_run.rules -> ../run.rules
lrwxrwxrwx  1 root root  16 2005-11-03 23:14 z55_hotplug.rules -> ../hotplug.rules
lrwxrwxrwx  1 root root  17 2005-09-15 00:53 z70_hotplugd.rules -> ../hotplugd.rules

-- /sys/:
/sys/block/fd0/dev
/sys/block/hda/dev
/sys/block/hdc/dev
/sys/block/ram0/dev
/sys/block/ram10/dev
/sys/block/ram11/dev
/sys/block/ram12/dev
/sys/block/ram13/dev
/sys/block/ram14/dev
/sys/block/ram15/dev
/sys/block/ram1/dev
/sys/block/ram2/dev
/sys/block/ram3/dev
/sys/block/ram4/dev
/sys/block/ram5/dev
/sys/block/ram6/dev
/sys/block/ram7/dev
/sys/block/ram8/dev
/sys/block/ram9/dev
/sys/block/sda/dev
/sys/block/sda/sda1/dev
/sys/block/sda/sda2/dev
/sys/block/sda/sda3/dev
/sys/block/sda/sda4/dev
/sys/block/sda/sda5/dev
/sys/block/sda/sda6/dev
/sys/block/sdb/dev
/sys/block/sdb/sdb1/dev
/sys/block/sdb/sdb2/dev
/sys/block/sdc/dev
/sys/block/sdc/sdc1/dev
/sys/block/sdd/dev
/sys/block/sde/dev
/sys/block/sdf/dev
/sys/block/sdg/dev
/sys/class/drm/card0/dev
/sys/class/input/event0/dev
/sys/class/input/event1/dev
/sys/class/input/event2/dev
/sys/class/input/event3/dev
/sys/class/input/mice/dev
/sys/class/input/mouse0/dev
/sys/class/input/mouse1/dev
/sys/class/mga_vid/mga_vid/dev
/sys/class/misc/agpgart/dev
/sys/class/misc/device-mapper/dev
/sys/class/misc/hpet/dev
/sys/class/misc/psaux/dev
/sys/class/misc/rtc/dev
/sys/class/ppp/ppp/dev
/sys/class/printer/lp0/dev
/sys/class/scsi_generic/sg0/dev
/sys/class/scsi_generic/sg1/dev
/sys/class/scsi_generic/sg2/dev
/sys/class/scsi_generic/sg3/dev
/sys/class/scsi_generic/sg4/dev
/sys/class/scsi_generic/sg5/dev
/sys/class/scsi_generic/sg6/dev
/sys/class/scsi_generic/sg7/dev
/sys/class/scsi_tape/nst0a/dev
/sys/class/scsi_tape/nst0/dev
/sys/class/scsi_tape/nst0l/dev
/sys/class/scsi_tape/nst0m/dev
/sys/class/scsi_tape/st0a/dev
/sys/class/scsi_tape/st0/dev
/sys/class/scsi_tape/st0l/dev
/sys/class/scsi_tape/st0m/dev
/sys/class/sound/adsp/dev
/sys/class/sound/audio/dev
/sys/class/sound/controlC0/dev
/sys/class/sound/dsp/dev
/sys/class/sound/mixer/dev
/sys/class/sound/pcmC0D0c/dev
/sys/class/sound/pcmC0D0p/dev
/sys/class/sound/pcmC0D1c/dev
/sys/class/sound/pcmC0D2p/dev
/sys/class/sound/timer/dev
/sys/class/usb/lp0/dev

-- Kernel configuration:


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-k7
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)

Versions of packages udev depends on:
ii  initscripts                   2.86.ds1-4 Standard scripts needed for bootin
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libselinux1                   1.26-1     SELinux shared libraries
ii  libsepol1                     1.8-1      Security Enhanced Linux policy lib
ii  lsb-base                      3.0-11     Linux Standard Base 3.0 init scrip
ii  makedev                       2.3.1-79   creates device files in /dev
ii  sed                           4.1.2-8    The GNU sed stream editor

udev recommends no packages.

-- debconf information:
  udev/devfs-warning:
* udev/reboot-warning:


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#339669: udev: bad permissions at startup for usb scanner

Marco d'Itri
reassign 339669 libsane
thanks

On Nov 17, gpe92 <[hidden email]> wrote:

> Since hotplug has been removed the permissions for the usb scanner are
> bad after the boot.
> If after the boot I unplug/plug the scanner the permission becomes good.
This does not looks like an udev bug.

--
ciao,
Marco

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#339669: udev: bad permissions at startup for usb scanner

Julien BLACHE
[hidden email] (Marco d'Itri) wrote:

Hi,

>> Since hotplug has been removed the permissions for the usb scanner are
>> bad after the boot.
>> If after the boot I unplug/plug the scanner the permission becomes good.
> This does not looks like an udev bug.

This was supposedly fixed in the last upload, by adding a RUN rule to
explicitely run the hotplug script.

I have no machine available to test coldplugging, so I'd appreciate if
someone could cook up a patch for this.

JB.

--
 Julien BLACHE <[hidden email]>  |  Debian, because code matters more
 Debian & GNU/Linux Developer        |       <http://www.debian.org>
 Public key available on <http://www.jblache.org> - KeyID: F5D6 5169
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#339669: udev: bad permissions at startup for usb scanner

gpe92
Le Sat, 19 Nov 2005 12:54:23 +0100
Julien BLACHE <[hidden email]> a écrit:

> [hidden email] (Marco d'Itri) wrote:
>
> Hi,
>
> >> Since hotplug has been removed the permissions for the usb
> >> scanner are bad after the boot.
> >> If after the boot I unplug/plug the scanner the permission
> >> becomes good.
> > This does not looks like an udev bug.
>
> This was supposedly fixed in the last upload, by adding a RUN rule
> to explicitely run the hotplug script.
>
> I have no machine available to test coldplugging, so I'd appreciate
> if someone could cook up a patch for this.
>
> JB.
>

Hi,

I've installed the version 1.0.16-5 of libsane but the problem is
always present.

Gaëtan

--
+-------+
| gpe92 |
+-------+

Reply | Threaded
Open this post in threaded view
|

Bug#339669: udev: bad permissions at startup for usb scanner

Julien BLACHE
gpe <[hidden email]> wrote:

Hi,

>> This was supposedly fixed in the last upload, by adding a RUN rule
>> to explicitely run the hotplug script.
>
> I've installed the version 1.0.16-5 of libsane but the problem is
> always present.

As I understand it, coldplugging is done by calling udevsynthesize
which recreates udev events for every device/bus on the system at boot
time (run from the udev init script).

I built a stripped-down version of udevsynthesize handling only the
USB busses and ran it by hand with a known scanner connected.

As far as I can see, the hotplug script is correctly executed.

As the said hotplug script uses only shell builtins, standard UNIX
commands under /bin and its db file under /etc/sane.d/hotplug, I don't
see how it could fail.

Unless /proc is not available at the time udevsynthesize is run, I
don't see how the script could fail. As the udev initscript uses /proc
itself, this too is ruled out.


Md, could you please shed some more light on this ?

JB.

--
 Julien BLACHE - Debian & GNU/Linux Developer - <[hidden email]>
 
 Public key available on <http://www.jblache.org> - KeyID: F5D6 5169
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]