Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 1995 09:35:32 -0400 (EDT)
From:      Peter Dufault <dufault@hda.com>
To:        uphya001@odie.physik2.uni-rostock.de (Lars koeller)
Cc:        freebsd-questions@freefall.FreeBSD.org
Subject:   Re: xmcd and 1742 and Toshiba 5301B don't work!
Message-ID:  <199508251335.JAA18743@hda.com>
In-Reply-To: <199508250931.LAA29129@odie.physik2.uni-rostock.de> from "Lars koeller" at Aug 25, 95 11:31:16 am

next in thread | previous in thread | raw e-mail | index | archive | help

> SCSI CDB bytes:
> 0000    00 00 00 00 00 00 -- --  -- -- -- -- -- -- -- --    ................
> SCIOCCOMMAND ioctl failed: Permission denied

The xmcd program is opening the CD-ROM device read-only.  The
SCIOCCOMMAND ioctl requires read/write privileges since it it can't
tell what the commands being submitted to the device do.  Here is
a contrived example: an application where as root you lock a CD in
place using PREVENT REMOVAL and then someone with read access uses
ALLOW REMOVAL and EJECT.

This was fixed soon after the driver change to require this but
the fix doesn't seem to have made it into the standard xmcd
distribution.  If you can find out where the open in the source
is you can just add write permissions.

Peter



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508251335.JAA18743>