- Notifications
You must be signed in to change notification settings - Fork28
Commit276d2e6
committed
Make current_logfiles use permissions assigned to files in data directory
Since its introduction in19dc233, current_logfiles has been assignedthe same permissions as a log file, which can be enforced withlog_file_mode. This setup can lead to incompatibility problems withgroup access permissions as current_logfiles is not located in the logdirectory, but at the root of the data folder. Hence, if grouppermissions are used but log_file_mode is more restrictive, a backupwith a user in the group having read access could fail even if the logdirectory is located outside of the data folder.Per discussion with the folks mentioned below, we have concluded thatcurrent_logfiles should not be treated as a log file as it only storesmetadata related to log files, and that it should use the samepermissions as all other files in the data directory. This solution hasthe merit to be simple and fixes all the interaction problems betweengroup access and log_file_mode.Author: Haribabu KommiReviewed-by: Stephen Frost, Robert Haas, Tom Lane, Michael PaquierDiscussion:https://postgr.es/m/CAJrrPGcEotF1P7AWoeQyD3Pqr-0xkQg_Herv98DjbaMj+naozw@mail.gmail.comBackpatch-through: 11, where group access has been added.1 parent280a408 commit276d2e6
1 file changed
+19
-2
lines changedLines changed: 19 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
| |||
1447 | 1448 |
| |
1448 | 1449 |
| |
1449 | 1450 |
| |
1450 |
| - | |
| 1451 | + | |
| 1452 | + | |
1451 | 1453 |
| |
1452 | 1454 |
| |
1453 | 1455 |
| |
1454 | 1456 |
| |
1455 | 1457 |
| |
| 1458 | + | |
1456 | 1459 |
| |
1457 | 1460 |
| |
1458 | 1461 |
| |
| |||
1465 | 1468 |
| |
1466 | 1469 |
| |
1467 | 1470 |
| |
1468 |
| - | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
1469 | 1486 |
| |
1470 | 1487 |
| |
1471 | 1488 |
| |
|
0 commit comments
Comments
(0)