From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 31 13:30:04 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 206AA16A4CF for ; Fri, 31 Oct 2003 13:30:04 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1425743F93 for ; Fri, 31 Oct 2003 13:30:03 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.9p2/8.12.9) with ESMTP id h9VLU1E7062416; Fri, 31 Oct 2003 14:30:01 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 31 Oct 2003 14:29:59 -0700 (MST) Message-Id: <20031031.142959.33240958.imp@bsdimp.com> To: andi_payn@speedymail.org From: "M. Warner Losh" In-Reply-To: <1067635232.825.202.camel@verdammt.falcotronic.net> References: <1067628015.825.64.camel@verdammt.falcotronic.net> <20031031.130229.132929054.imp@bsdimp.com> <1067635232.825.202.camel@verdammt.falcotronic.net> X-Mailer: Mew version 2.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: dwmalone@maths.tcd.ie cc: freebsd-hackers@freebsd.org Subject: Re: O_NOACCESS? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2003 21:30:04 -0000 In message: <1067635232.825.202.camel@verdammt.falcotronic.net> andi payn writes: : > : Are there any other special devices like this in FreeBSD? : > : > Rewind units on tape drives? If there's no access check done, and I : > open the rewind unit as joe-smoe? The close code is what does the : > rewind, and you don't have enough knowledge to know if the tape was : > opened r/w there. Actually, it looks like there's a flags parameter passed to close, which I think could be used to 'know'. No one uses it now. : Thanks; that's a good example. Do you have an example of a specific : driver so I can look at the code and see what would need to be done? src/sys/cam/scsi/scsi_sa.c. Warner