Remove a check which restricted raw SCSI commands to the "minor 3"
("CTLMODE") subdevice. There are legitimate uses for raw commands with normal tape handles too. [I'm not sure if this is a final solution. Administrators might want to set up a more finegrained policy. However, this should not be mixed with the "set defaults" semantics of the "CTLMODE" subdevice; another flag should be used instead (eg execute permission or a minor number bit).]
This commit is contained in:
parent
d408ddc6c7
commit
fb28f87855
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: st.c,v 1.91 1998/07/15 20:13:57 mjacob Exp $ */
|
||||
/* $NetBSD: st.c,v 1.92 1998/07/19 18:43:20 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Charles Hannum. All rights reserved.
|
||||
|
@ -1319,11 +1319,8 @@ stioctl(dev, cmd, arg, flag, p)
|
|||
break;
|
||||
|
||||
default:
|
||||
if (STMODE(dev) == CTLMODE)
|
||||
error = scsipi_do_ioctl(st->sc_link, dev, cmd, arg,
|
||||
flag, p);
|
||||
else
|
||||
error = ENOTTY;
|
||||
error = scsipi_do_ioctl(st->sc_link, dev, cmd, arg,
|
||||
flag, p);
|
||||
break;
|
||||
}
|
||||
return (error);
|
||||
|
|
Loading…
Reference in New Issue