diff options
| author | Jeff Layton <jlayton@redhat.com> | 2012-10-03 16:02:36 -0400 |
|---|---|---|
| committer | Steve French <smfrench@gmail.com> | 2012-10-07 21:05:47 -0400 |
| commit | 72bd481f860f0125c810bb43d878ce5f9c060c58 (patch) | |
| tree | 2c3896f96c94fab2b35fbc7575110eb09381221d | |
| parent | fd3ba42c76d3d4b776120c2b24c1791e7bb3deb1 (diff) | |
cifs: reinstate the forcegid option
Apparently this was lost when we converted to the standard option
parser in 8830d7e07a5e38bc47650a7554b7c1cfd49902bf
Cc: Sachin Prabhu <sprabhu@redhat.com>
Cc: stable@vger.kernel.org # v3.4+
Reported-by: Gregory Lee Bartholomew <gregory.lee.bartholomew@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
| -rw-r--r-- | fs/cifs/connect.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 2fdbe08a7a2..5c670b998ff 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
| @@ -67,6 +67,7 @@ enum { | |||
| 67 | /* Mount options that take no arguments */ | 67 | /* Mount options that take no arguments */ |
| 68 | Opt_user_xattr, Opt_nouser_xattr, | 68 | Opt_user_xattr, Opt_nouser_xattr, |
| 69 | Opt_forceuid, Opt_noforceuid, | 69 | Opt_forceuid, Opt_noforceuid, |
| 70 | Opt_forcegid, Opt_noforcegid, | ||
| 70 | Opt_noblocksend, Opt_noautotune, | 71 | Opt_noblocksend, Opt_noautotune, |
| 71 | Opt_hard, Opt_soft, Opt_perm, Opt_noperm, | 72 | Opt_hard, Opt_soft, Opt_perm, Opt_noperm, |
| 72 | Opt_mapchars, Opt_nomapchars, Opt_sfu, | 73 | Opt_mapchars, Opt_nomapchars, Opt_sfu, |
| @@ -117,6 +118,8 @@ static const match_table_t cifs_mount_option_tokens = { | |||
| 117 | { Opt_nouser_xattr, "nouser_xattr" }, | 118 | { Opt_nouser_xattr, "nouser_xattr" }, |
| 118 | { Opt_forceuid, "forceuid" }, | 119 | { Opt_forceuid, "forceuid" }, |
| 119 | { Opt_noforceuid, "noforceuid" }, | 120 | { Opt_noforceuid, "noforceuid" }, |
| 121 | { Opt_forcegid, "forcegid" }, | ||
| 122 | { Opt_noforcegid, "noforcegid" }, | ||
| 120 | { Opt_noblocksend, "noblocksend" }, | 123 | { Opt_noblocksend, "noblocksend" }, |
| 121 | { Opt_noautotune, "noautotune" }, | 124 | { Opt_noautotune, "noautotune" }, |
| 122 | { Opt_hard, "hard" }, | 125 | { Opt_hard, "hard" }, |
| @@ -1195,6 +1198,12 @@ cifs_parse_mount_options(const char *mountdata, const char *devname, | |||
| 1195 | case Opt_noforceuid: | 1198 | case Opt_noforceuid: |
| 1196 | override_uid = 0; | 1199 | override_uid = 0; |
| 1197 | break; | 1200 | break; |
| 1201 | case Opt_forcegid: | ||
| 1202 | override_gid = 1; | ||
| 1203 | break; | ||
| 1204 | case Opt_noforcegid: | ||
| 1205 | override_gid = 0; | ||
| 1206 | break; | ||
| 1198 | case Opt_noblocksend: | 1207 | case Opt_noblocksend: |
| 1199 | vol->noblocksnd = 1; | 1208 | vol->noblocksnd = 1; |
| 1200 | break; | 1209 | break; |
