summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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;