summaryrefslogtreecommitdiffstats
path: root/sys/fs/fifofs
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-08-20 02:17:59 +0000
committerrwatson <rwatson@FreeBSD.org>2002-08-20 02:17:59 +0000
commit6cbbcf7f28e15d04660d4758a880e488cc4d3fb1 (patch)
tree76cf3d9d4704df787c3e79975ac246c9a1072075 /sys/fs/fifofs
parenta2d28129a1dc6ba8790a2b615588e2801bc485eb (diff)
downloadFreeBSD-src-6cbbcf7f28e15d04660d4758a880e488cc4d3fb1.zip
FreeBSD-src-6cbbcf7f28e15d04660d4758a880e488cc4d3fb1.tar.gz
Handle one more case of a fifofs filetmp: set filetmp.f_cred to
ap->a_cred, and pass in ap->a_td->td_ucred as the active_cred to soo_poll(). Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'sys/fs/fifofs')
-rw-r--r--sys/fs/fifofs/fifo_vnops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/fs/fifofs/fifo_vnops.c b/sys/fs/fifofs/fifo_vnops.c
index 9a674fc..7459223 100644
--- a/sys/fs/fifofs/fifo_vnops.c
+++ b/sys/fs/fifofs/fifo_vnops.c
@@ -493,9 +493,10 @@ fifo_poll(ap)
events = ap->a_events & (POLLOUT | POLLWRNORM | POLLWRBAND);
if (events) {
filetmp.f_data = (caddr_t)ap->a_vp->v_fifoinfo->fi_writesock;
+ filetmp.f_cred = ap->a_cred;
if (filetmp.f_data)
- revents |= soo_poll(&filetmp, events, ap->a_cred,
- ap->a_td);
+ revents |= soo_poll(&filetmp, events,
+ ap->a_td->td_ucred, ap->a_td);
}
return (revents);
}
OpenPOWER on IntegriCloud