aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/fid.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2010-06-01 05:26:18 -0400
committerEric Van Hensbergen <ericvh@gmail.com>2010-08-02 15:25:08 -0400
commit9ffaf63e34821ea60b2e1c8593f968d73728f82b (patch)
treea2fa40eeb0cc9ae7bb1ac5dfbbd23231746290f8 /fs/9p/fid.c
parent69d4b4436b54c1a850d475697fda5ca117b09a5e (diff)
fs/9p: Pass the correct user credentials during attach
We need to make sure we pass the right uid value during attach. dotl is similar to dotu in this regard. Without this mapped security model on dotl doesn't work Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/fid.c')
-rw-r--r--fs/9p/fid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/9p/fid.c b/fs/9p/fid.c
index 7317b39b2815..5d6cfcbf73e7 100644
--- a/fs/9p/fid.c
+++ b/fs/9p/fid.c
@@ -152,7 +152,8 @@ struct p9_fid *v9fs_fid_lookup(struct dentry *dentry)
152 if (access == V9FS_ACCESS_SINGLE) 152 if (access == V9FS_ACCESS_SINGLE)
153 return ERR_PTR(-EPERM); 153 return ERR_PTR(-EPERM);
154 154
155 if (v9fs_proto_dotu(v9ses)) 155 if (v9fs_proto_dotu(v9ses) ||
156 v9fs_proto_dotl(v9ses))
156 uname = NULL; 157 uname = NULL;
157 else 158 else
158 uname = v9ses->uname; 159 uname = v9ses->uname;