summaryrefslogtreecommitdiff
path: root/sys/scsi/scsiconf.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2004-11-30 19:28:38 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2004-11-30 19:28:38 +0000
commitfb3934f07db6d15ace429d030550efe0a66658b1 (patch)
treef902513cd88dffa058a70dbede96e48fd0f8d4cc /sys/scsi/scsiconf.h
parente61649205f107102f4eead2d28193c945c02b7ee (diff)
No longer require write permission for read-only SCSI commands
submitted via ioctl. Eliminate scsi_do_safeioctl(), thus permitting ch, ss and st devices to submit SCSI commands. Return EPERM rather than EBADF when permissions are inadequate. Allows more programs to run with fewer permissions. Problem diagnosed by Nikolay Sturm in mplayer port. Tested by Nikolay, ok deraadt@.
Diffstat (limited to 'sys/scsi/scsiconf.h')
-rw-r--r--sys/scsi/scsiconf.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h
index 790da1d212a..644fd76eec8 100644
--- a/sys/scsi/scsiconf.h
+++ b/sys/scsi/scsiconf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsiconf.h,v 1.47 2004/07/31 11:31:30 krw Exp $ */
+/* $OpenBSD: scsiconf.h,v 1.48 2004/11/30 19:28:37 krw Exp $ */
/* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */
/*
@@ -337,8 +337,6 @@ int scsi_scsi_cmd(struct scsi_link *, struct scsi_generic *,
int timeout, struct buf *bp, int flags);
int scsi_do_ioctl(struct scsi_link *, dev_t, u_long, caddr_t,
int, struct proc *);
-int scsi_do_safeioctl(struct scsi_link *, dev_t, u_long, caddr_t,
- int, struct proc *);
void sc_print_addr(struct scsi_link *);
void show_scsi_xs(struct scsi_xfer *);