]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: call _getattr() with UserPerm in posix checkers
authorGreg Farnum <gfarnum@redhat.com>
Wed, 3 Aug 2016 06:34:58 +0000 (23:34 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Wed, 21 Sep 2016 23:33:54 +0000 (16:33 -0700)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/client/Client.cc

index 345b6f9c352b2c68e80eb4ae826a7142a976f5c3..5f8659008742f617f45d6c984b0639b6eed7a8ca 100644 (file)
@@ -12381,8 +12381,7 @@ int Client::_posix_acl_chmod(Inode *in, mode_t mode, const UserPerm& perms)
   if (acl_type == NO_ACL)
     return 0;
 
-  int r = _getattr(in, CEPH_STAT_CAP_XATTR, perms.uid(), perms.gid(),
-                  in->xattr_version == 0);
+  int r = _getattr(in, CEPH_STAT_CAP_XATTR, perms, in->xattr_version == 0);
   if (r < 0)
     goto out;
 
@@ -12412,7 +12411,7 @@ int Client::_posix_acl_create(Inode *dir, mode_t *mode, bufferlist& xattrs_bl,
   if (S_ISLNK(*mode))
     return 0;
 
-  int r = _getattr(dir, CEPH_STAT_CAP_XATTR, perms.uid(), perms.gid(), dir->xattr_version == 0);
+  int r = _getattr(dir, CEPH_STAT_CAP_XATTR, perms, dir->xattr_version == 0);
   if (r < 0)
     goto out;