From 72f5246f785a7c36527124e3037e0800d9dd1282 Mon Sep 17 00:00:00 2001 From: rwatson Date: Mon, 12 Aug 2002 01:24:26 +0000 Subject: Another fix that wasn't pulled in from the MAC branch: the struct mount is not cached as *mp at this point, so use vp->v_mount directly, following the check that it's non-NULL. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs --- sys/compat/linux/linux_stats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_stats.c') diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c index 5ceb22a..e99bc67 100644 --- a/sys/compat/linux/linux_stats.c +++ b/sys/compat/linux/linux_stats.c @@ -360,7 +360,8 @@ 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, mp); + error = mac_check_mount_stat(td->td_proc->p_ucred, + vp->v_mount); if (error) return (error); #endif -- cgit v1.1