Bug#542204: libv4l-0: libv4lconvert.so.0 creates shm files inaccessible by other users

2009-08-19 Thread Gregor Jasny
Hans de Goede wrote: Patches welcome. please let let me know if you do not plan on working on this then I'll do a patch myself. The attached patch prefixes the shm segment name with the effective uid. It falls back to malloc if shm segment creation fails. I'm unsure if it would be better to

Bug#542204: libv4l-0: libv4lconvert.so.0 creates shm files inaccessible by other users

2009-08-18 Thread Alexey Feldgendler
Package: libv4l-0 Version: 0.6.0-1 Severity: important libv4lconvert.so.0 creates a shm file as current user: -rw--- 1 xman xman 4096 Aug 18 14:22 /dev/shm/usb-:00:1d.1-1:PC Camera When a video capturing application is later run by a different user, libv4lconvert.so.0 fails to reuse

Bug#542204: libv4l-0: libv4lconvert.so.0 creates shm files inaccessible by other users

2009-08-18 Thread Gregor Jasny
Hi Hans, I just received the following bug report. As far as I understand the code, this shared memory is for remembering configuration values. So everybody who has write permission on the video device can change the underlaying values. So this would justify the same permissions on the shm

Bug#542204: libv4l-0: libv4lconvert.so.0 creates shm files inaccessible by other users

2009-08-18 Thread Hans de Goede
Hi Gregor er all, On 08/18/2009 03:32 PM, Gregor Jasny wrote: Hi Hans, I just received the following bug report. As far as I understand the code, this shared memory is for remembering configuration values. Control values such as the setting for the gamma software correction. Yes. this is to