From 746aa1faa4d2f3a3186e8f660e6a140457580fb3 Mon Sep 17 00:00:00 2001 From: Gaurav Date: Wed, 20 Apr 2011 05:12:58 +0000 Subject: NFS : Check proper permissions in access control for setattr. Signed-off-by: Gaurav Signed-off-by: Anand Avati BUG: 2818 (Permission problems with gluster NFS works with native FUSE) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2818 --- xlators/features/access-control/src/access-control.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlators/features/access-control/src/access-control.c b/xlators/features/access-control/src/access-control.c index d766f764e77..1dca5ac2724 100644 --- a/xlators/features/access-control/src/access-control.c +++ b/xlators/features/access-control/src/access-control.c @@ -1793,7 +1793,7 @@ ac_setattr_stat_cbk (call_frame_t *frame, void *cookie, xlator_t *this, op_ret = ac_test_access (buf, frame->root->uid, frame->root->gid, frame->root->groups, frame->root->ngrps, - ACCTEST_DONTCARE, ACCTEST_OWNER, + ACCTEST_WRITE, ACCTEST_ANY, &op_errno); if (op_ret == -1) goto out; @@ -1906,7 +1906,7 @@ ac_fsetattr_fstat_cbk (call_frame_t *frame, void *cookie, xlator_t *this, op_ret = ac_test_access (buf, frame->root->uid, frame->root->gid, frame->root->groups, frame->root->ngrps, - ACCTEST_DONTCARE, ACCTEST_OWNER, + ACCTEST_WRITE, ACCTEST_ANY, &op_errno); if (op_ret == -1) goto out; -- cgit