Skip to content

Commit a557b97

Browse files
jtlaytonSteve French
authored andcommitted
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 <[email protected]> Reported-by: Ronald <[email protected]> Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent f966424 commit a557b97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/cifs/connect.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ static const match_table_t cifs_mount_option_tokens = {
215215

216216
{ Opt_ignore, "cred" },
217217
{ Opt_ignore, "credentials" },
218+
{ Opt_ignore, "cred=%s" },
219+
{ Opt_ignore, "credentials=%s" },
218220
{ Opt_ignore, "guest" },
219221
{ Opt_ignore, "rw" },
220222
{ Opt_ignore, "ro" },

0 commit comments

Comments
 (0)