use vfs_suser() to restrict access to the nfs mount's timeout.

This commit is contained in:
Alfred Perlstein 2004-07-06 09:40:44 +00:00
parent 1ea6061793
commit 14af415c34
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131697

View File

@ -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)