1a15fa068SBrian Feldman.\" -*- nroff -*- 2a15fa068SBrian Feldman.\" 3b45deeb2SRobert Watson.\" Copyright (c) 2002 Networks Associates Technology, Inc. 4a15fa068SBrian Feldman.\" All rights reserved. 5a15fa068SBrian Feldman.\" 6c3c2d89dSBrian Feldman.\" This software was developed for the FreeBSD Project by NAI Labs, the 7c3c2d89dSBrian Feldman.\" Security Research Division of Network Associates, Inc. under 8c3c2d89dSBrian Feldman.\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA 9c3c2d89dSBrian Feldman.\" CHATS research program. 10a15fa068SBrian Feldman.\" 11a15fa068SBrian Feldman.\" Redistribution and use in source and binary forms, with or without 12a15fa068SBrian Feldman.\" modification, are permitted provided that the following conditions 13a15fa068SBrian Feldman.\" are met: 14a15fa068SBrian Feldman.\" 1. Redistributions of source code must retain the above copyright 15a15fa068SBrian Feldman.\" notice, this list of conditions and the following disclaimer. 16a15fa068SBrian Feldman.\" 2. Redistributions in binary form must reproduce the above copyright 17a15fa068SBrian Feldman.\" notice, this list of conditions and the following disclaimer in the 18a15fa068SBrian Feldman.\" documentation and/or other materials provided with the distribution. 19c3c2d89dSBrian Feldman.\" 3. The names of the authors may not be used to endorse or promote 20c3c2d89dSBrian Feldman.\" products derived from this software without specific prior written 21c3c2d89dSBrian Feldman.\" permission. 22a15fa068SBrian Feldman.\" 23c3c2d89dSBrian Feldman.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 24c3c2d89dSBrian Feldman.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25c3c2d89dSBrian Feldman.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26c3c2d89dSBrian Feldman.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 27c3c2d89dSBrian Feldman.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28c3c2d89dSBrian Feldman.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29c3c2d89dSBrian Feldman.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30c3c2d89dSBrian Feldman.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31c3c2d89dSBrian Feldman.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32c3c2d89dSBrian Feldman.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33c3c2d89dSBrian Feldman.\" SUCH DAMAGE. 34a15fa068SBrian Feldman.\" 35a15fa068SBrian Feldman.\" $FreeBSD$ 36a15fa068SBrian Feldman.\" 37a15fa068SBrian Feldman.Dd February 5, 2002 38a15fa068SBrian Feldman.Os 39a15fa068SBrian Feldman.Dt VOP_REVOKE 9 40a15fa068SBrian Feldman.Sh NAME 41a15fa068SBrian Feldman.Nm VOP_REVOKE 4221bb400dSRuslan Ermilov.Nd "revoke access to a device and its aliases" 43a15fa068SBrian Feldman.Sh SYNOPSIS 44a15fa068SBrian Feldman.In sys/param.h 45a15fa068SBrian Feldman.In sys/vnode.h 46a15fa068SBrian Feldman.Ft int 4721bb400dSRuslan Ermilov.Fn VOP_REVOKE "struct vnode *vp" "int flags" 48a15fa068SBrian Feldman.Sh DESCRIPTION 4921bb400dSRuslan Ermilov.Fn VOP_REVOKE 50a15fa068SBrian Feldmanwill administratively revoke access to the device specified by 5121bb400dSRuslan Ermilov.Fa vp , 52a15fa068SBrian Feldmanas well as any aliases created via 53a15fa068SBrian Feldman.Xr make_dev_alias 9 . 5421bb400dSRuslan ErmilovFurther file operations on any of these devices by processes 5521bb400dSRuslan Ermilovwhich have them open will nominally fail. 56a15fa068SBrian FeldmanThe 5721bb400dSRuslan Ermilov.Fa flags 58a15fa068SBrian Feldmanmust be set to 59a15fa068SBrian Feldman.Dv REVOKEALL 60a15fa068SBrian Feldmanto signify that all access will be revoked; any other value is invalid. 61a15fa068SBrian Feldman.Sh LOCKS 62a15fa068SBrian FeldmanThe 6321bb400dSRuslan Ermilov.Fa vp 648466e2baSRobert Watsonmust be unlocked on entry, and will remain unlocked upon return. 65a15fa068SBrian Feldman.Sh SEE ALSO 66a15fa068SBrian Feldman.Xr make_dev_alias 9 , 67a15fa068SBrian Feldman.Xr vnode 9 68a15fa068SBrian Feldman.Sh AUTHORS 69571dba6eSHiten PandyaThis manual page was written by 70a15fa068SBrian Feldman.An Brian Fundakowski Feldman . 71