Re: PATCH: cdrecord: avoiding scsi device numbering for ide devices

Kai Makisara
2004-08-23T18:21:30Z

On Sun, 22 Aug 2004, Joerg Schilling wrote:

> Christer Weinigel <christer@weinigel.se> wrote:
>
...
> > One is to make cdrecord suid root and then make it drop all
> > capabilities except for SYS_CAP_RAWIO. But even if cdrecord is
> > audited, there are a lot of other applications that need to be able to
> > send raw SCSI commands such as mt (to change the compression or tape
> > format of a streamer). And this violates goal 2, every security guide
> > I've seen lately recommends minimizing the amount of suid binaries,
> > not adding more.
>
> A better way is to have services like this in /usr/bin/pfexec that
> do the ecirity related parts before calling the other binaries.
>
> BTW: 'mt' should not need to send SCSI comands. THis shoul dbe handled via
> specilized ioctls.
>
There are already ioctls for changing the tape parameters. Christer, there
is no need to introduce tapes into this discussion.

--
Kai