Comment 1 for bug 1214915

Revision history for this message
ladiko (ladiko) wrote :

This is another machine with the same software packages, kernel etc. just the hardware setup is slightly different. there are 3 cameras of the same vendor/model and 1 from another vendor. so i just want the three cameras to be effected, thats why the udev.rule executes the same command but looks for the vendor id.

Using username "okidal".
okidal@192.168.1.106's password:
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.2.0-52-generic-pae i686)

 * Documentation: https://help.ubuntu.com/

0 packages can be updated.
0 updates are security updates.

Last login: Wed Aug 21 16:12:26 2013 from 192.168.1.161
okidal@enihcam:~$ ls -la /dev/vid*
crw-rw----+ 1 root video 81, 0 Aug 21 16:13 /dev/video0
crw-rw----+ 1 root root 81, 1 Aug 21 16:13 /dev/video1
crw-rw----+ 1 root root 81, 2 Aug 21 16:13 /dev/video2
crw-rw----+ 1 root root 81, 3 Aug 21 16:13 /dev/video3
okidal@enihcam:~$ sudo udevadm trigger
[sudo] password for okidal:
okidal@enihcam:~$ ls -la /dev/vid*
crw-rw----+ 1 root video 81, 0 Aug 21 16:13 /dev/video0
crw------- 1 root root 81, 1 Aug 21 16:14 /dev/video1
crw-rw----+ 1 root root 81, 2 Aug 21 16:14 /dev/video2
crw------- 1 root root 81, 3 Aug 21 16:14 /dev/video3
okidal@enihcam:~$ sudo udevadm trigger
okidal@enihcam:~$ ls -la /dev/vid*
crw-rw----+ 1 root video 81, 0 Aug 21 16:14 /dev/video0
crw------- 1 root root 81, 1 Aug 21 16:15 /dev/video1
crw------- 1 root root 81, 2 Aug 21 16:14 /dev/video2
crw------- 1 root root 81, 3 Aug 21 16:15 /dev/video3
okidal@enihcam:~$

so when i boot, all cameras still have their acls, executing udevadm trigger changes 2 cameras while 1 preserves the acls and another call of udevadm changes the last of three cameras.

i also checked the syslog. After a restart, setfacl isnt executed, even not if i restart udev, but when i use udevadm trigger, udevd calls setfacl for the video devices.

cosmocard@CC-F08-0064:~$ sudo service udev restart
[sudo] password for cosmocard:
udev stop/waiting
udev start/running, process 4554
cosmocard@CC-F08-0064:~$ ls -la /dev/vid*
crw-rw----+ 1 root video 81, 0 Aug 21 16:23 /dev/video0
crw-rw----+ 1 root root 81, 1 Aug 21 16:23 /dev/video1
crw-rw----+ 1 root root 81, 2 Aug 21 16:23 /dev/video2
crw-rw----+ 1 root root 81, 3 Aug 21 16:23 /dev/video3
cosmocard@CC-F08-0064:~$ sudo udevadm trigger
cosmocard@CC-F08-0064:~$ ls -la /dev/vid*
crw-rw----+ 1 root video 81, 0 Aug 21 16:26 /dev/video0
crw------- 1 root root 81, 1 Aug 21 16:26 /dev/video1
crw------- 1 root root 81, 2 Aug 21 16:26 /dev/video2
crw------- 1 root root 81, 3 Aug 21 16:26 /dev/video3
cosmocard@CC-F08-0064:~$