summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs3.c
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-12-20 00:24:33 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-12-27 20:51:05 -0800
commit48f3faaa492b7a6f93e1f3d79cb66b34fd080468 (patch)
treeb33be507c9ce669a85fed66feaa9de9ef0ea2ae6 /xlators/nfs/server/src/nfs3.c
parentd0fff8965875ed7e7cee223bd2c7b12df10cb6d7 (diff)
nfs3: Access cbk must account for auxgids on group access checks
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2045 (Write permission denied for non-primary group membership) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2045
Diffstat (limited to 'xlators/nfs/server/src/nfs3.c')
-rw-r--r--xlators/nfs/server/src/nfs3.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c
index 443ec5265d8..46f7f7c5ce2 100644
--- a/xlators/nfs/server/src/nfs3.c
+++ b/xlators/nfs/server/src/nfs3.c
@@ -1320,11 +1320,15 @@ nfs3_access_reply (rpcsvc_request_t *req, nfsstat3 status, struct iatt *buf,
{
access3res res;
uint64_t deviceid = 0;
+ gid_t *gidarr = NULL;
+ int gids = 0;
deviceid = nfs3_request_xlator_deviceid (req);
+ gidarr = nfs_rpcsvc_auth_unix_auxgids (req, &gids);
nfs3_fill_access3res (&res, status, buf, accbits,
nfs_rpcsvc_request_uid (req),
- nfs_rpcsvc_request_gid (req), deviceid);
+ nfs_rpcsvc_request_gid (req), deviceid, gidarr,
+ gids);
nfs3svc_submit_reply (req, &res,
(nfs3_serializer)xdr_serialize_access3res);
return 0;