diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 2003-01-12 01:37:13 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 2003-01-12 01:37:13 +0000 |
| commit | cd72f2180bfff020d03180e6eba1c3a0e0125468 (patch) | |
| tree | 19da0d56c468b8e0f6d0361d7d39157f561aa69f /sys/security/mac/mac_framework.c | |
| parent | 1bd6f83d4d49a87f27dbfe50f9717a182e9f1f47 (diff) | |
Notes
Diffstat (limited to 'sys/security/mac/mac_framework.c')
| -rw-r--r-- | sys/security/mac/mac_framework.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/security/mac/mac_framework.c b/sys/security/mac/mac_framework.c index 6542a7312b6a..299ad5017548 100644 --- a/sys/security/mac/mac_framework.c +++ b/sys/security/mac/mac_framework.c @@ -3211,7 +3211,7 @@ __mac_get_fd(struct thread *td, struct __mac_get_fd_args *uap) switch (fp->f_type) { case DTYPE_FIFO: case DTYPE_VNODE: - vp = (struct vnode *)fp->f_data; + vp = fp->un_data.vnode; mac_init_vnode_label(&intlabel); @@ -3221,7 +3221,7 @@ __mac_get_fd(struct thread *td, struct __mac_get_fd_args *uap) break; case DTYPE_PIPE: - pipe = (struct pipe *)fp->f_data; + pipe = fp->un_data.pipe; mac_init_pipe_label(&intlabel); @@ -3419,7 +3419,7 @@ __mac_set_fd(struct thread *td, struct __mac_set_fd_args *uap) break; } - vp = (struct vnode *)fp->f_data; + vp = fp->un_data.vnode; error = vn_start_write(vp, &mp, V_WAIT | PCATCH); if (error != 0) { mac_destroy_vnode_label(&intlabel); @@ -3438,7 +3438,7 @@ __mac_set_fd(struct thread *td, struct __mac_set_fd_args *uap) mac_init_pipe_label(&intlabel); error = mac_internalize_pipe_label(&intlabel, buffer); if (error == 0) { - pipe = (struct pipe *)fp->f_data; + pipe = fp->un_data.pipe; PIPE_LOCK(pipe); error = mac_pipe_label_set(td->td_ucred, pipe, &intlabel); |
