Bug 157067

Summary: Palm Pilots not accessible
Product: Red Hat Enterprise Linux 4 Reporter: Bastien Nocera <bnocera>
Component: udevAssignee: Harald Hoyer <harald>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: davidz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-11 10:15:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bastien Nocera 2005-05-06 16:12:25 UTC
Plug in a USB Palm, and press the hotsync button.
The ttyUSB[0-1] devices aren't accessible by the console user.

Right now, I use:
BUS="usb", SYSFS{idVendor}="0830", SYSFS{idProduct}="0061", NAME="pilot%n"
in a udev rules file, which is obviously not enough to make all the USB Palms
work. Getting the list of devices using the "visor" driver from
/lib/modules/<kernelver>/modules.usbmap would probably be pretty complete.

Note: /etc/security/console.perms from pam would need to be modified to handle
more than one Palm.

Comment 1 Harald Hoyer 2005-05-09 12:00:22 UTC
The palm reconnects itsself to the USB kernel layer after you press the hotsync
button.
See also http://fedora.redhat.com/docs/udev/

Comment 2 Bastien Nocera 2005-05-09 12:49:03 UTC
I know, but given that the Palm doesn't get a name different from "ttyUSBX", we
can't tell whether the created device node is a USB modem, a Palm, or another
serial adaptor of some kind.
That's why some differentiation at the udev level is needed.

Comment 3 Harald Hoyer 2005-05-09 16:45:04 UTC
HAL?

Comment 4 Bastien Nocera 2005-05-10 21:45:07 UTC
HAL doesn't modify permissions, does it?

Comment 5 David Zeuthen 2005-05-10 21:56:54 UTC
It doesn't do this yet, no

Comment 6 David Zeuthen 2005-05-10 21:58:22 UTC
For a quick fix I would look for the "visor" driver in my udev rules (udev rule
should create the pilot symlink and then pam-console-apply does the right thing
for /dev/pilot).

Comment 7 Harald Hoyer 2005-05-11 10:15:25 UTC
We are now at the point where we can create various udev/pam_console config drop
ins for hardware. I started to document this and will publish it on our fedora
homepage.

I will add it to the udev core. This may be a noarch.rpm with some configs.