On 04/06/2013 06:45 PM, Phil Dibowitz wrote:
> Yup, all the usbnet stuff worked like a charm. I'll debug the rules hopefully
> this weekend.

So I did a udevadm test on that device, but the problem is I don't quite get
how all the ID_REMOTE_CONTROL stuff works. We see it process that file:

parse_file: reading '/lib/udev/rules.d/60-libconcord.rules' as rules file

Which should set ENV{ID_REMOTE_CONTROL}=1

Then we see it process the udev-acl file that cares about that:

parse_file: reading '/lib/udev/rules.d/70-udev-acl.rules' as rules file

Which internally does:

# Programmable remote control
ENV{ID_REMOTE_CONTROL}=="1", TAG+="udev-acl"

Which then does:

# apply ACL for all locally logged in users
LABEL="acl_apply", TAG=="udev-acl", TEST=="/var/run/ConsoleKit/database", \
  RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"

OK... hmm. I don't really understand that, but I ee this:

udev_rules_apply_to_event: RUN 'udev-acl --action=$env{ACTION}
--device=$env{DEVNAME}' /lib/udev/rules.d/70-udev-acl.rules:74
udev_rules_apply_to_event: MODE 0664 /lib/udev/rules.d/91-permissions.rules:36
udev_event_execute_rules: no node name set, will use kernel supplied name
'bus/usb/001/027'
udev_node_add: creating device node '/dev/bus/usb/001/027', devnum=189:26,
mode=01664, uid=0, gid=0
udev_node_mknod: preserve file '/dev/bus/usb/001/027', because it has correct
dev_t
udev_node_mknod: preserve permissions /dev/bus/usb/001/027, 021664, uid=0, gid=0
node_symlink: preserve already existing symlink '/dev/char/189:26' to
'../bus/usb/001/027'
udev_device_update_db: created db file '/run/udev/data/c189:26' for
'/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2'
...
run: 'udev-acl --action=add --device=/dev/bus/usb/001/027'

And I also see:

ID_REMOTE_CONTROL=1

So our rule are working. OK, so looking at that:

[phil@rider ~]$ ls -l !$
ls -l /dev/bus/usb/001/027
crw-rw-r-T 1 root root 189, 26 Apr  6 18:53 /dev/bus/usb/001/027

I don't really understand what goes on under the hood for udev-acl, so I don't
really know what else to look at... and some googling didn't really enlighten 
me.

-- 
Phil Dibowitz                             p...@ipom.com
Open Source software and tech docs        Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"Be who you are and say what you feel, because those who mind don't matter
 and those who matter don't mind."
 - Dr. Seuss


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
concordance-devel mailing list
concordance-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/concordance-devel

Reply via email to