]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: policy : put object support for x-amz-metadata-directive
authorAbhishek Lekshmanan <abhishek@suse.com>
Tue, 17 Oct 2017 09:59:33 +0000 (11:59 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 22 Jan 2018 13:47:33 +0000 (14:47 +0100)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_op.cc

index d74a70c2b589104ae9df5d17bc6159e5f3b460f8..9b09dbd7721c8f02c0d81196e87f30d35ddd6583 100644 (file)
@@ -3039,6 +3039,8 @@ int RGWPutObj::verify_permission()
     }
 
     rgw_add_to_iam_environment(s->env, "s3:x-amz-copy-source", copy_source);
+    rgw_add_to_iam_environment(s->env, "s3:x-amz-metadata-directive", copy_source);
+
     rgw_add_grant_to_iam_environment(s->env, s);
     /* admin request overrides permission checks */
     if (! s->auth.identity->is_admin_of(cs_acl.get_owner().get_id())) {