Commit 5ed9b1f
committed
rgw/s3: ObjectOwnership interacts with canned acls
when object uploads specify a canned acl, they call create_canned_acl()
to build the corresponding RGWAccessControlPolicy
ObjectOwnership adds two special cases to this:
* BucketOwnerEnforced denies acls other than "bucket-owner-full-control"
* BucketOwnerPreferred overrides owner for "bucket-owner-full-control"
Signed-off-by: Casey Bodley <[email protected]>1 parent 373d638 commit 5ed9b1f
3 files changed
+27
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
677 | 677 | | |
678 | 678 | | |
679 | 679 | | |
| 680 | + | |
680 | 681 | | |
681 | | - | |
| 682 | + | |
| 683 | + | |
682 | 684 | | |
683 | 685 | | |
684 | 686 | | |
685 | 687 | | |
686 | 688 | | |
687 | 689 | | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
688 | 706 | | |
689 | 707 | | |
690 | 708 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2526 | 2526 | | |
2527 | 2527 | | |
2528 | 2528 | | |
2529 | | - | |
| 2529 | + | |
| 2530 | + | |
2530 | 2531 | | |
2531 | 2532 | | |
2532 | 2533 | | |
| |||
3423 | 3424 | | |
3424 | 3425 | | |
3425 | 3426 | | |
3426 | | - | |
| 3427 | + | |
| 3428 | + | |
3427 | 3429 | | |
3428 | 3430 | | |
3429 | 3431 | | |
| |||
0 commit comments