wiresquire
July 14th, 2009, 04:22 AM
Hi
I have a usb tv-tuner device that also can do fm radio.
When inserted, the tv device is correctly set up with an ACL (with me in it!) on /dev/video1. And it works!
It also sets up /dev/radio0 for the radio, but no ACL is set up, and only root can access it. I can set the ACL manually using setfacl (sudo setfacl -m u:wiresquire:rw /dev/radio0) and everything works, but when the device is removed, the ACL is lost. When I reinsert it, I'm back at square one. I could also 'cheat' and add myself to a group, but I'd rather have it consistent.
So, I would like to set up an ACL for /dev/radio0 when the device is inserted that is permanent.
I've searched and seen some mention about udev etc, but that's when I start to get rather lost.
Can anyone help with some simple instructions/steps on how to do this?
TIA
ws
I have a usb tv-tuner device that also can do fm radio.
When inserted, the tv device is correctly set up with an ACL (with me in it!) on /dev/video1. And it works!
It also sets up /dev/radio0 for the radio, but no ACL is set up, and only root can access it. I can set the ACL manually using setfacl (sudo setfacl -m u:wiresquire:rw /dev/radio0) and everything works, but when the device is removed, the ACL is lost. When I reinsert it, I'm back at square one. I could also 'cheat' and add myself to a group, but I'd rather have it consistent.
So, I would like to set up an ACL for /dev/radio0 when the device is inserted that is permanent.
I've searched and seen some mention about udev etc, but that's when I start to get rather lost.
Can anyone help with some simple instructions/steps on how to do this?
TIA
ws