[mythtv] qmake & makefile question
J. Donavan Stanley
jdonavan at jdonavan.net
Mon Jun 21 05:02:16 EDT 2004
Matt Zimmerman wrote:
>On Sun, Jun 20, 2004 at 09:47:56PM +0200, Leo Weppelman wrote:
>
>
>
>>I also checked the kernel source and the handling in the LOCKDOOR case
>>for the cdrom seems to indicate that the user should be root to unlock
>>a drive with a mounted filesystem. This is from the 2.6.5 kernel source:
>> ./drivers/cdrom/cdrom.c:
>> case CDROM_LOCKDOOR: {
>> cdinfo(CD_DO_IOCTL, "%socking door.\n", arg ? "L" : "Unl");
>> if (!CDROM_CAN(CDC_LOCK))
>> return -EDRIVE_CANT_DO_THIS;
>> keeplocked = arg ? 1 : 0;
>> /* don't unlock the door on multiple opens,but allow root
>> * to do so */
>> if ((cdi->use_count != 1) && !arg && !capable(CAP_SYS_ADMIN))
>> return -EBUSY;
>> return cdo->lock_door(cdi, arg);
>>
>>
>
>That is perfectly sane; there's no reason why MythTV or any other
>unprivileged process should be trying to unlock when the filesystem is
>mounted.
>
>
If I as a user insert a CD and wish the tray to be unlock I should be
able to do so. If inserts a CD then I as a user should not be able to
unlock it. We're not talking about mounting /unmounting (which users
can do) but locking the tray door itself.
More information about the mythtv-dev
mailing list