From 14af415c344cf8c699b280262b349a748e7fbd91 Mon Sep 17 00:00:00 2001 From: Alfred Perlstein Date: Tue, 6 Jul 2004 09:40:44 +0000 Subject: [PATCH] use vfs_suser() to restrict access to the nfs mount's timeout. --- sys/nfsclient/nfs_vfsops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index 0e98916a6f85..96746286aa18 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -1024,6 +1024,9 @@ nfs_sysctl(struct mount *mp, fsctlop_t op, struct sysctl_req *req) return (error); } if (req->newptr != NULL) { + error = vfs_suser(mp, req->td); + if (error) + return (error); error = SYSCTL_IN(req, &nmp->nm_tprintf_initial_delay, sizeof(nmp->nm_tprintf_initial_delay)); if (error)