mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
NFSv4: Disallow 'mount -t nfs4 -overs=2' and 'mount -t nfs4 -overs=3'
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
764302ccb8
commit
2ecda72b49
1 changed files with 6 additions and 0 deletions
|
@ -2321,6 +2321,12 @@ static int nfs4_validate_text_mount_data(void *options,
|
||||||
|
|
||||||
nfs4_validate_mount_flags(args);
|
nfs4_validate_mount_flags(args);
|
||||||
|
|
||||||
|
if (args->version != 4) {
|
||||||
|
dfprintk(MOUNT,
|
||||||
|
"NFS4: Illegal mount version\n");
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
if (args->auth_flavor_len > 1) {
|
if (args->auth_flavor_len > 1) {
|
||||||
dfprintk(MOUNT,
|
dfprintk(MOUNT,
|
||||||
"NFS4: Too many RPC auth flavours specified\n");
|
"NFS4: Too many RPC auth flavours specified\n");
|
||||||
|
|
Loading…
Reference in a new issue