提交 2ecda72b 编写于 作者: T Trond Myklebust

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

Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 764302cc
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册