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

Commit a557b976 authored by Jeff Layton's avatar Jeff Layton Committed by Steve French
Browse files

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: default avatarRonald <ronald645@gmail.com>
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent f966424e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -215,6 +215,8 @@ static const match_table_t cifs_mount_option_tokens = {

	{ Opt_ignore, "cred" },
	{ Opt_ignore, "credentials" },
	{ Opt_ignore, "cred=%s" },
	{ Opt_ignore, "credentials=%s" },
	{ Opt_ignore, "guest" },
	{ Opt_ignore, "rw" },
	{ Opt_ignore, "ro" },