Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ecda72b authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: Disallow 'mount -t nfs4 -overs=2' and 'mount -t nfs4 -overs=3'

parent 764302cc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2321,6 +2321,12 @@ static int nfs4_validate_text_mount_data(void *options,

	nfs4_validate_mount_flags(args);

	if (args->version != 4) {
		dfprintk(MOUNT,
			 "NFS4: Illegal mount version\n");
		return -EINVAL;
	}

	if (args->auth_flavor_len > 1) {
		dfprintk(MOUNT,
			 "NFS4: Too many RPC auth flavours specified\n");