aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/super.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 9c85cdb353aa..f3a95df4b95f 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -1338,6 +1338,16 @@ static int nfs_walk_authlist(struct nfs_parsed_mount_data *args,
1338 unsigned int i, j, server_authlist_len = *(request->auth_flav_len); 1338 unsigned int i, j, server_authlist_len = *(request->auth_flav_len);
1339 1339
1340 /* 1340 /*
1341 * Certain releases of Linux's mountd return an empty
1342 * flavor list. To prevent behavioral regression with
1343 * these servers (ie. rejecting mounts that used to
1344 * succeed), revert to pre-2.6.32 behavior (no checking)
1345 * if the returned flavor list is empty.
1346 */
1347 if (server_authlist_len == 0)
1348 return 0;
1349
1350 /*
1341 * We avoid sophisticated negotiating here, as there are 1351 * We avoid sophisticated negotiating here, as there are
1342 * plenty of cases where we can get it wrong, providing 1352 * plenty of cases where we can get it wrong, providing
1343 * either too little or too much security. 1353 * either too little or too much security.