]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/Server: add create access check for openc
authorNishtha Rai <nishtha3rai@gmail.com>
Tue, 28 Jul 2015 17:56:19 +0000 (23:26 +0530)
committerSage Weil <sage@redhat.com>
Thu, 1 Oct 2015 13:39:33 +0000 (09:39 -0400)
Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
src/mds/Server.cc

index 8bff70004aa0c67ee84e0b265ed7b366d8ea6cf6..bbd12b80ddf348e249d09f1f5697113088c4dc0c 100644 (file)
@@ -3108,7 +3108,7 @@ void Server::handle_client_openc(MDRequestRef& mdr)
   if (!mds->locker->acquire_locks(mdr, rdlocks, wrlocks, xlocks))
     return;
 
-  if (!check_access(mdr, diri, MAY_WRITE))
+  if (!check_access(mdr, diri, MAY_WRITE|MAY_CREATE))
     return;
 
   CDentry::linkage_t *dnl = dn->get_projected_linkage();