[mythtv] qmake & makefile question
Matt Zimmerman
mdz at debian.org
Sun Jun 20 20:36:29 EDT 2004
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.
--
- mdz
More information about the mythtv-dev
mailing list