diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2010-09-27 14:57:41 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2010-10-28 10:08:46 -0400 |
commit | 76381a42e4a5606774fd48413e6282cd7130ff2c (patch) | |
tree | b7d6f73804b1bb7bca4198991c42122fa6ff159e /fs/9p/vfs_super.c | |
parent | ad77dbce567128d59b37a14c9562c8af6f63aeca (diff) |
fs/9p: Add access = client option to opt in acl evaluation.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_super.c')
-rw-r--r-- | fs/9p/vfs_super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index 14da5778d44e..174643f4f901 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c | |||
@@ -90,7 +90,8 @@ v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses, | |||
90 | MS_NOATIME; | 90 | MS_NOATIME; |
91 | 91 | ||
92 | #ifdef CONFIG_9P_FS_POSIX_ACL | 92 | #ifdef CONFIG_9P_FS_POSIX_ACL |
93 | sb->s_flags |= MS_POSIXACL; | 93 | if ((v9ses->flags & V9FS_ACCESS_MASK) == V9FS_ACCESS_CLIENT) |
94 | sb->s_flags |= MS_POSIXACL; | ||
94 | #endif | 95 | #endif |
95 | 96 | ||
96 | save_mount_options(sb, data); | 97 | save_mount_options(sb, data); |
@@ -181,7 +182,6 @@ static int v9fs_get_sb(struct file_system_type *fs_type, int flags, | |||
181 | retval = v9fs_get_acl(inode, fid); | 182 | retval = v9fs_get_acl(inode, fid); |
182 | if (retval) | 183 | if (retval) |
183 | goto release_sb; | 184 | goto release_sb; |
184 | |||
185 | v9fs_fid_add(root, fid); | 185 | v9fs_fid_add(root, fid); |
186 | 186 | ||
187 | P9_DPRINTK(P9_DEBUG_VFS, " simple set mount, return 0\n"); | 187 | P9_DPRINTK(P9_DEBUG_VFS, " simple set mount, return 0\n"); |