From owner-freebsd-hackers Sat Jun 17 02:02:34 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id CAA14942 for hackers-outgoing; Sat, 17 Jun 1995 02:02:34 -0700 Received: from dns.netvision.net.il (root@dns.NetVision.net.il [194.90.1.5]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id CAA14927 for ; Sat, 17 Jun 1995 02:02:27 -0700 Received: from gena@NetVision.net.il (ts43p3.NetVision.net.il [194.90.1.143]) by dns.netvision.net.il (8.6.10/8.6.9) with SMTP id LAA22930; Sat, 17 Jun 1995 11:59:58 +0300 Date: Sat, 17 Jun 1995 11:59:58 +0300 Message-ID: X-Face: #v>4HN>#D_"[olq9y`HqTYkLVB89Xy|3')Vs9v58JQ*u-xEJVKY`xa.}E?z0RkLI/P&;BJmi0#u=W0).-Y'J4(dw{"54NhSG|YYZG@[)(`e! >jN#L!~qI5fE-JHS+< Organization: NetVision ltd. X-Mailer: XFMail 0.2-Beta on FreeBSD From: "Gennady B. Sorokopud" To: Subject: SCIOCCOMMAND ioctl - permission denied Cc: Tomi Vainio , , "Gennady B. Sorokopud" Sender: hackers-owner@FreeBSD.org Precedence: bulk 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