diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2010-06-01 09:26:18 +0000 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2010-08-02 14:25:08 -0500 |
commit | 9ffaf63e34821ea60b2e1c8593f968d73728f82b (patch) | |
tree | a2fa40eeb0cc9ae7bb1ac5dfbbd23231746290f8 /fs/9p/v9fs.c | |
parent | 69d4b4436b54c1a850d475697fda5ca117b09a5e (diff) | |
download | kernel_goldelico_gta04-9ffaf63e34821ea60b2e1c8593f968d73728f82b.zip kernel_goldelico_gta04-9ffaf63e34821ea60b2e1c8593f968d73728f82b.tar.gz kernel_goldelico_gta04-9ffaf63e34821ea60b2e1c8593f968d73728f82b.tar.bz2 |
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/v9fs.c')
-rw-r--r-- | fs/9p/v9fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c index f8b86e9..3c49201 100644 --- a/fs/9p/v9fs.c +++ b/fs/9p/v9fs.c @@ -278,7 +278,7 @@ struct p9_fid *v9fs_session_init(struct v9fs_session_info *v9ses, v9ses->maxdata = v9ses->clnt->msize - P9_IOHDRSZ; /* for legacy mode, fall back to V9FS_ACCESS_ANY */ - if (!v9fs_proto_dotu(v9ses) && + if (!(v9fs_proto_dotu(v9ses) || v9fs_proto_dotl(v9ses)) && ((v9ses->flags&V9FS_ACCESS_MASK) == V9FS_ACCESS_USER)) { v9ses->flags &= ~V9FS_ACCESS_MASK; |