summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorGaurav <gaurav@gluster.com>2011-04-20 05:12:58 +0000
committerAnand Avati <avati@gluster.com>2011-04-21 00:39:33 -0700
commit746aa1faa4d2f3a3186e8f660e6a140457580fb3 (patch)
tree9a9bd89f294c14eda639a1855e09a82bb220113d /xlators/features
parent2d8f4fae7c06c73cd828c247e462a2b1017f5679 (diff)
NFS : Check proper permissions in access control for setattr.
Signed-off-by: Gaurav <gaurav@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2818 (Permission problems with gluster NFS works with native FUSE) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2818
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/access-control/src/access-control.c4
1 files 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 d766f764e..1dca5ac27 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;