use vfs_suser() to restrict access to the nfs mount's timeout.
This commit is contained in:
parent
f22bf0318c
commit
c4f768dfa5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user