diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-05-02 14:02:40 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2012-05-03 14:50:01 -0400 |
commit | a557b97616c49d81e09c8439831d4c4f13ef4050 (patch) | |
tree | 11824355379fb4272353c4e7e240acd6fabbba02 /fs/cifs | |
parent | f966424e9935900e34cace8116d37aa70cff23d0 (diff) |
cifs: make sure we ignore the credentials= and cred= options
Older mount.cifs programs passed this on to the kernel after parsing
the file. Make sure the kernel ignores that option.
Should fix:
https://bugzilla.kernel.org/show_bug.cgi?id=43195
Cc: Sachin Prabhu <sprabhu@redhat.com>
Reported-by: Ronald <ronald645@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/connect.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index a75902b28bf9..5dcc55197fb3 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -215,6 +215,8 @@ static const match_table_t cifs_mount_option_tokens = { | |||
215 | 215 | ||
216 | { Opt_ignore, "cred" }, | 216 | { Opt_ignore, "cred" }, |
217 | { Opt_ignore, "credentials" }, | 217 | { Opt_ignore, "credentials" }, |
218 | { Opt_ignore, "cred=%s" }, | ||
219 | { Opt_ignore, "credentials=%s" }, | ||
218 | { Opt_ignore, "guest" }, | 220 | { Opt_ignore, "guest" }, |
219 | { Opt_ignore, "rw" }, | 221 | { Opt_ignore, "rw" }, |
220 | { Opt_ignore, "ro" }, | 222 | { Opt_ignore, "ro" }, |