From 75dbce47b66d889683af6fd67aad634d2f162b67 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Tue, 26 May 2009 16:28:11 -0400 Subject: [PATCH] --- yaml --- r: 146457 b: refs/heads/master c: f55ed1a83d099f275c9560ad7d4c4700d1e54bdd h: refs/heads/master i: 146455: 52eb0035bd7b6a3ede5fc7a25f567b6cecec35b9 v: v3 --- [refs] | 2 +- trunk/fs/cifs/connect.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 4eb770ccaee5..e4fb6f6b0d20 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 46a7574caf5bc533c24b315800ed323c187614f5 +refs/heads/master: f55ed1a83d099f275c9560ad7d4c4700d1e54bdd diff --git a/trunk/fs/cifs/connect.c b/trunk/fs/cifs/connect.c index 4aa81a507b74..f32c9036741e 100644 --- a/trunk/fs/cifs/connect.c +++ b/trunk/fs/cifs/connect.c @@ -827,9 +827,9 @@ cifs_parse_mount_options(char *options, const char *devname, vol->target_rfc1001_name[0] = 0; vol->linux_uid = current_uid(); /* use current_euid() instead? */ vol->linux_gid = current_gid(); - vol->dir_mode = S_IRWXUGO; - /* 2767 perms indicate mandatory locking support */ - vol->file_mode = (S_IRWXUGO | S_ISGID) & (~S_IXGRP); + + /* default to only allowing write access to owner of the mount */ + vol->dir_mode = vol->file_mode = S_IRUGO | S_IXUGO | S_IWUSR; /* vol->retry default is 0 (i.e. "soft" limited retry not hard retry) */ vol->rw = true;