Commit 4cd40c7
committed
rgw/iam: simplify match_policy() for colon-delimited use only
remove unused MATCH_POLICY_STRING
ARN::match() was the only caller for MATCH_POLICY_ARN, but it was used
to match the 'region' and 'account' components that were already parsed
out of the colon-separated ARN string. for that use, we don't need the
loop-over-colons behavior of match_policy() so can call match_wildcards()
directly
after doing the same for MATCH_POLICY_RESOURCE, we no longer have any
non-looping callers of match_policy() so can treat 'bool colonblocks' as
unconditionally true
Signed-off-by: Casey Bodley <[email protected]>1 parent e56665c commit 4cd40c7
File tree
4 files changed
+9
-33
lines changed- src
- rgw
- test/rgw
4 files changed
+9
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2188 | 2188 | | |
2189 | 2189 | | |
2190 | 2190 | | |
2191 | | - | |
2192 | | - | |
2193 | 2191 | | |
2194 | | - | |
2195 | 2192 | | |
2196 | 2193 | | |
2197 | | - | |
2198 | | - | |
2199 | | - | |
| 2194 | + | |
| 2195 | + | |
2200 | 2196 | | |
2201 | 2197 | | |
2202 | 2198 | | |
2203 | 2199 | | |
2204 | 2200 | | |
2205 | 2201 | | |
2206 | 2202 | | |
2207 | | - | |
2208 | | - | |
2209 | | - | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
2210 | 2206 | | |
2211 | 2207 | | |
2212 | 2208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1909 | 1909 | | |
1910 | 1910 | | |
1911 | 1911 | | |
1912 | | - | |
1913 | | - | |
1914 | | - | |
| 1912 | + | |
1915 | 1913 | | |
1916 | 1914 | | |
1917 | 1915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1464 | 1464 | | |
1465 | 1465 | | |
1466 | 1466 | | |
1467 | | - | |
1468 | | - | |
1469 | | - | |
1470 | | - | |
1471 | | - | |
1472 | | - | |
1473 | | - | |
1474 | | - | |
1475 | | - | |
1476 | 1467 | | |
1477 | 1468 | | |
1478 | 1469 | | |
| |||
1482 | 1473 | | |
1483 | 1474 | | |
1484 | 1475 | | |
1485 | | - | |
1486 | | - | |
1487 | | - | |
1488 | | - | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
1494 | 1476 | | |
1495 | 1477 | | |
1496 | 1478 | | |
| |||
0 commit comments