diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-08-20 02:17:59 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-08-20 02:17:59 +0000 |
commit | 6cbbcf7f28e15d04660d4758a880e488cc4d3fb1 (patch) | |
tree | 76cf3d9d4704df787c3e79975ac246c9a1072075 /sys | |
parent | a2d28129a1dc6ba8790a2b615588e2801bc485eb (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/fs/fifofs/fifo_vnops.c | 5 |
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); } |