summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorGaurav <gaurav@gluster.com>2011-04-20 05:20:22 +0000
committerAnand Avati <avati@gluster.com>2011-04-21 00:40:02 -0700
commit7bb3165eac9e21f60231c7b91c4e2e879daab796 (patch)
tree96581c55c2a5d63df8c75a2a361ae2753ca1e10b /xlators
parent3f94c4384a7f76bae2fc240ee4bf27ab0952c829 (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')
-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 7b5689dace6..78a0629a83f 100644
--- a/xlators/features/access-control/src/access-control.c
+++ b/xlators/features/access-control/src/access-control.c
@@ -1687,7 +1687,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;
@@ -1797,7 +1797,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;