Date: Sat, 17 Jun 1995 11:59:58 +0300 From: "Gennady B. Sorokopud" <gena@NetVision.net.il> To: <dufault@hda.com> Cc: Tomi Vainio <tomppa@zeta.fidata.fi>, <hackers@FreeBSD.org>, "Gennady B. Sorokopud" <gena@NetVision.net.il> Subject: SCIOCCOMMAND ioctl - permission denied Message-ID: <XFMail.950617113414.gena@NetVision.net.il>
next in thread | raw e-mail | index | archive | help
Hello! I'm author of xmcd port to FreeBSD platform. I received some reports from users that claims that xmcd SCSI interface does not work any more on 2.0.5R. After some checking i find out that SCIOCCOMMAND ioctl always fail with "permission denied". Looking at /sys/scsi/scsi_ioctl.c line 260: /* If we can't write the device we can't permit much: */ if (cmd != SCIOCIDENTIFY && !(flags & FWRITE)) return EACCES; After commenting out this 2 lines and recompiling the kernel xmcd started to work fine. All i need to know is how to call this ioctl so it will not fail. (I have write permission on the device and i get "permission denied" even if i'm running xmcd as root). Any help will be appreciated. -------- Gennady B. Sorokopud - System programmer at NetVision Israel. E-Mail: gena@NetVision.net.il Homepage: http://www.netvision.net.il/~gena This message was sent at 06/17/95 11:34:15 by XF-Mail
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.950617113414.gena>