forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit91c2755
committed
Move permissions check from do_pg_start_backup to pg_start_backup
And the same for do_pg_stop_backup. The code in do_pg_* is not allowedto access the catalogs. For manual base backups, the permissionscheck can be handled in the calling function, and for streamingbase backups only users with the required permissions can get pastthe authentication step in the first place.Reported by Antonin Houska, diagnosed by Andres Freund1 parent0463b94 commit91c2755
2 files changed
+16
-10
lines changedLines changed: 6 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8444 | 8444 |
| |
8445 | 8445 |
| |
8446 | 8446 |
| |
| 8447 | + | |
| 8448 | + | |
| 8449 | + | |
8447 | 8450 |
| |
8448 | 8451 |
| |
8449 | 8452 |
| |
| |||
8464 | 8467 |
| |
8465 | 8468 |
| |
8466 | 8469 |
| |
8467 |
| - | |
8468 |
| - | |
8469 |
| - | |
8470 |
| - | |
8471 |
| - | |
8472 | 8470 |
| |
8473 | 8471 |
| |
8474 | 8472 |
| |
| |||
8770 | 8768 |
| |
8771 | 8769 |
| |
8772 | 8770 |
| |
| 8771 | + | |
| 8772 | + | |
| 8773 | + | |
8773 | 8774 |
| |
8774 | 8775 |
| |
8775 | 8776 |
| |
| |||
8802 | 8803 |
| |
8803 | 8804 |
| |
8804 | 8805 |
| |
8805 |
| - | |
8806 |
| - | |
8807 |
| - | |
8808 |
| - | |
8809 |
| - | |
8810 | 8806 |
| |
8811 | 8807 |
| |
8812 | 8808 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 |
| |
60 | 65 |
| |
61 | 66 |
| |
| |||
82 | 87 |
| |
83 | 88 |
| |
84 | 89 |
| |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
85 | 95 |
| |
86 | 96 |
| |
87 | 97 |
| |
|
0 commit comments
Comments
(0)