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

This commit is contained in:
alfred 2004-07-06 09:40:44 +00:00
parent f22bf0318c
commit c4f768dfa5

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)