summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_usrreq.c
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2003-02-15 06:04:55 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2003-02-15 06:04:55 +0000
commite7d6662f1b95202adc7ff6e2aecf9c0283acc8aa (patch)
tree6c098d97cace4a0b11af4f27480aefdb513d245a /sys/kern/uipc_usrreq.c
parent8484cf97769b3b5024bfd27d908d99c48a9aea90 (diff)
Notes
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r--sys/kern/uipc_usrreq.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index 102d1568a689..51c7d84e7f21 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1171,6 +1171,13 @@ unp_internalize(controlp, td)
error = EBADF;
goto out;
}
+ fp = fdescp->fd_ofiles[fd];
+ if (!(fp->f_ops->fo_flags & DFLAG_PASSABLE)) {
+ FILEDESC_UNLOCK(fdescp);
+ error = EOPNOTSUPP;
+ goto out;
+ }
+
}
/*
* Now replace the integer FDs with pointers to