Skip to contentSkip to conversation

Suggestion : generic permission rule for WMC devices (phones)

DISCUSSION Olivier Berger 2 participants 2 messages Nov 12, 2006 – Nov 13, 2006

lore
Share & tools
lore
#0 lore raw

Hi.

(I'm not subscribed to the list, so I hope to be able to post anyway. Please reply to me then also ;)

I'd like to make a suggestion for addition of a rule for permissions of "WMC Devices" i.e. Wireless Mobile Communication devices, in the default rules on Debian, which would allow users in group dialout to access their phones over OBEX on USB cables, with OpenOBEX (on devices like /dev/bus/usb/002/012, used by obexftp) :

I think that something like :
SUBSYSTEM="usb_device", GROUP="dialout", \
ATTRS{configuration}="WMC Device"
would fit.

I think such a rule would be generic enough to catch all mobile phones, and I'd prefer something like that instead of multiple rules for each phone. Actually for mine (Sony ericsson K610i) this one also works, but is less generic, then :

SUBSYSTEM="usb_device",                        GROUP="dialout", \
        ATTRS{idVendor}="0fce", ATTRS{idProduct}="d046"

I'd like to have your opinion on this idea. I'm just afraid the ATTRS{configuration}="WMC Device" and SUBSYSTEM="usb_device" would be too much generic and cause other issues...

I hope you'll find this idea interesting and you will be able to confirm my intuition.

Thanks in advance for your insight.

Best regards,

P.S.: I documented my current setup at
http://www.olivierberger.com/weblog/index.php/2006/11/12/66-transfering-files-to-the-sony-ericsson-k610i-from-gnu-linux-through-usb-obex
if you need some details on the context.

Signature · 13 lines
Olivier BERGER (OpenPGP: 1024D/B4C5F37F)
APRIL (http://www.april.org) - Vive python (http://www.python.org)
Pétition contre les brevets logiciels : http://petition.eurolinux.org

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw
Quoted 20 lines · Olivier Berger

Hi.

(I'm not subscribed to the list, so I hope to be able to post anyway. Please reply to me then also ;)

I'd like to make a suggestion for addition of a rule for permissions of "WMC Devices" i.e. Wireless Mobile Communication devices, in the default rules on Debian, which would allow users in group dialout to access their phones over OBEX on USB cables, with OpenOBEX (on devices like /dev/bus/usb/002/012, used by obexftp) :

I think that something like :
SUBSYSTEM="usb_device", GROUP="dialout", \
ATTRS{configuration}="WMC Device"
would fit.

I think such a rule would be generic enough to catch all mobile phones, and I'd prefer something like that instead of multiple rules for each phone. Actually for mine (Sony ericsson K610i) this one also works, but is less generic, then :

Quoted 6 lines
SUBSYSTEM="usb_device",                        GROUP="dialout", \
        ATTRS{idVendor}="0fce", ATTRS{idProduct}="d046"

I'd like to have your opinion on this idea. I'm just afraid the ATTRS{configuration}="WMC Device" and SUBSYSTEM="usb_device" would be too much generic and cause other issues...

I think that would be too generic, and odds are the {configuration} will not always match too.

You are going to probably have to have a lot of different rules for all of the different phones, sorry.

Blame the manufacturers for this mess.

good luck,

greg k-h

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel