]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
SQUASH: client: request AUTH caps on the directory during create if we'll need to...
authorJeff Layton <jlayton@redhat.com>
Thu, 1 Sep 2016 18:35:59 +0000 (14:35 -0400)
committerJeff Layton <jlayton@redhat.com>
Thu, 1 Sep 2016 18:35:59 +0000 (14:35 -0400)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc

index 9c15f17a3bfeb0095aa732d7e66f8959d6561b02..fb2f1800e402de5b914717cd1556eda0e2354da6 100644 (file)
@@ -7761,7 +7761,9 @@ int Client::open(const char *relpath, int flags, mode_t mode, int stripe_unit,
     string dname = dirpath.last_dentry();
     dirpath.pop_dentry();
     InodeRef dir;
-    r = path_walk(dirpath, &dir, true, 0, uid, gid);
+    r = path_walk(dirpath, &dir, true,
+                 cct->_conf->client_permissions ? CEPH_CAP_AUTH_SHARED : 0,
+                 uid, gid);
     if (r < 0)
       goto out;
     if (cct->_conf->client_permissions) {