diff options
author | jhb <jhb@FreeBSD.org> | 2003-03-20 21:17:40 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-03-20 21:17:40 +0000 |
commit | b8b062b09b687ba751b96ac20ce9fb9a79a43301 (patch) | |
tree | 608cb551a154df99f6a9548cb3d9702bd3b8428c /sys/compat/linux/linux_stats.c | |
parent | 15ebade0f49b1e1e6e150dec2ce588fd540bf300 (diff) | |
download | FreeBSD-src-b8b062b09b687ba751b96ac20ce9fb9a79a43301.zip FreeBSD-src-b8b062b09b687ba751b96ac20ce9fb9a79a43301.tar.gz |
Use td->td_ucred instead of td->td_proc->p_ucred.
Diffstat (limited to 'sys/compat/linux/linux_stats.c')
-rw-r--r-- | sys/compat/linux/linux_stats.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c index 07a962b..eab5ad5 100644 --- a/sys/compat/linux/linux_stats.c +++ b/sys/compat/linux/linux_stats.c @@ -251,7 +251,7 @@ linux_statfs(struct thread *td, struct linux_statfs_args *args) bsd_statfs = &mp->mnt_stat; vrele(ndp->ni_vp); #ifdef MAC - error = mac_check_mount_stat(td->td_proc->p_ucred, mp); + error = mac_check_mount_stat(td->td_ucred, mp); if (error) return (error); #endif @@ -290,7 +290,7 @@ linux_fstatfs(struct thread *td, struct linux_fstatfs_args *args) return error; mp = ((struct vnode *)fp->f_data)->v_mount; #ifdef MAC - error = mac_check_mount_stat(td->td_proc->p_ucred, mp); + error = mac_check_mount_stat(td->td_ucred, mp); if (error) { fdrop(fp, td); return (error); @@ -358,8 +358,7 @@ linux_ustat(struct thread *td, struct linux_ustat_args *args) if (vp->v_mount == NULL) return (EINVAL); #ifdef MAC - error = mac_check_mount_stat(td->td_proc->p_ucred, - vp->v_mount); + error = mac_check_mount_stat(td->td_ucred, vp->v_mount); if (error) return (error); #endif |