[mythtv] qmake & makefile question
Matt Zimmerman
mdz at debian.org
Mon Jun 21 11:54:44 EDT 2004
On Mon, Jun 21, 2004 at 05:02:16AM -0400, J. Donavan Stanley wrote:
> Matt Zimmerman wrote:
>
> >On Sun, Jun 20, 2004 at 09:47:56PM +0200, Leo Weppelman wrote:
> >> 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.
Right, and the user is allowed to unlock it, _unless_ it is in use. That is
my understanding of the above code.
--
- mdz
More information about the mythtv-dev
mailing list