From dce357b112387c72cfddd3345a878c96e7023adc Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 13 Dec 2004 07:07:50 +0000 Subject: [PATCH] Explicitly panic vop_read/vop_write on fifos. --- sys/fs/fifofs/fifo_vnops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/fs/fifofs/fifo_vnops.c b/sys/fs/fifofs/fifo_vnops.c index 53d267f34be6..2fcf088693ec 100644 --- a/sys/fs/fifofs/fifo_vnops.c +++ b/sys/fs/fifofs/fifo_vnops.c @@ -116,6 +116,7 @@ struct vop_vector fifo_specops = { .vop_open = fifo_open, .vop_pathconf = fifo_pathconf, .vop_print = fifo_print, + .vop_read = VOP_PANIC, .vop_readdir = VOP_PANIC, .vop_readlink = VOP_PANIC, .vop_reallocblks = VOP_PANIC, @@ -125,6 +126,7 @@ struct vop_vector fifo_specops = { .vop_rmdir = VOP_PANIC, .vop_setattr = VOP_EBADF, .vop_symlink = VOP_PANIC, + .vop_write = VOP_PANIC, }; struct mtx fifo_mtx;