diff options
author | alfred <alfred@FreeBSD.org> | 2004-07-06 09:40:44 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2004-07-06 09:40:44 +0000 |
commit | 864fa13b593089d4325cbbc276fef55caf64b8f4 (patch) | |
tree | 3396c162015b7c308f1fc913c1ec65995c53f21a /sys/nfsclient/nfs_vfsops.c | |
parent | 131eae0f4c08d0be9821cca4889db8dc9055bfd7 (diff) | |
download | FreeBSD-src-864fa13b593089d4325cbbc276fef55caf64b8f4.zip FreeBSD-src-864fa13b593089d4325cbbc276fef55caf64b8f4.tar.gz |
use vfs_suser() to restrict access to the nfs mount's timeout.
Diffstat (limited to 'sys/nfsclient/nfs_vfsops.c')
-rw-r--r-- | sys/nfsclient/nfs_vfsops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index 0e98916..9674628 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) |