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/kern/subr_acl_posix1e.c | |
| parent | 1bd6f83d4d49a87f27dbfe50f9717a182e9f1f47 (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_acl_posix1e.c')
| -rw-r--r-- | sys/kern/subr_acl_posix1e.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/kern/subr_acl_posix1e.c b/sys/kern/subr_acl_posix1e.c index 3b48a82a6b1f..1611614c567f 100644 --- a/sys/kern/subr_acl_posix1e.c +++ b/sys/kern/subr_acl_posix1e.c @@ -780,7 +780,7 @@ __acl_get_fd(struct thread *td, struct __acl_get_fd_args *uap) mtx_lock(&Giant); error = getvnode(td->td_proc->p_fd, uap->filedes, &fp); if (error == 0) { - error = vacl_get_acl(td, (struct vnode *)fp->f_data, + error = vacl_get_acl(td, fp->un_data.vnode, uap->type, uap->aclp); fdrop(fp, td); } @@ -802,7 +802,7 @@ __acl_set_fd(struct thread *td, struct __acl_set_fd_args *uap) mtx_lock(&Giant); error = getvnode(td->td_proc->p_fd, uap->filedes, &fp); if (error == 0) { - error = vacl_set_acl(td, (struct vnode *)fp->f_data, + error = vacl_set_acl(td, fp->un_data.vnode, uap->type, uap->aclp); fdrop(fp, td); } @@ -868,8 +868,7 @@ __acl_delete_fd(struct thread *td, struct __acl_delete_fd_args *uap) mtx_lock(&Giant); error = getvnode(td->td_proc->p_fd, uap->filedes, &fp); if (error == 0) { - error = vacl_delete(td, (struct vnode *)fp->f_data, - uap->type); + error = vacl_delete(td, fp->un_data.vnode, uap->type); fdrop(fp, td); } mtx_unlock(&Giant); @@ -934,7 +933,7 @@ __acl_aclcheck_fd(struct thread *td, struct __acl_aclcheck_fd_args *uap) mtx_lock(&Giant); error = getvnode(td->td_proc->p_fd, uap->filedes, &fp); if (error == 0) { - error = vacl_aclcheck(td, (struct vnode *)fp->f_data, + error = vacl_aclcheck(td, fp->un_data.vnode, uap->type, uap->aclp); fdrop(fp, td); } |
