forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9a83564
committed
Allow SSL server key file to have group read access if owned by root
We used to require the server key file to have permissions 0600 or lessfor best security. But some systems (such as Debian) have certificateand key files managed by the operating system that can be shared withother services. In those cases, the "postgres" user is made a member ofa special group that has access to those files, and the server key filehas permissions 0640. To accommodate that kind of setup, also allow thekey file to have permissions 0640 but only if owned by root.From: Christoph Berg <myon@debian.org>Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>1 parent6eb2be1 commit9a83564
File tree
2 files changed
+40
-6
lines changed- doc/src/sgml
- src/backend/libpq
2 files changed
+40
-6
lines changedLines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2147 | 2147 |
| |
2148 | 2148 |
| |
2149 | 2149 |
| |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
2150 | 2153 |
| |
2151 | 2154 |
| |
2152 |
| - | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
2153 | 2164 |
| |
2154 | 2165 |
| |
2155 | 2166 |
| |
|
Lines changed: 28 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
206 | 206 |
| |
207 | 207 |
| |
208 | 208 |
| |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
209 | 228 |
| |
210 |
| - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
211 | 233 |
| |
212 | 234 |
| |
213 | 235 |
| |
214 | 236 |
| |
215 | 237 |
| |
216 | 238 |
| |
217 | 239 |
| |
218 |
| - | |
| 240 | + | |
| 241 | + | |
219 | 242 |
| |
220 | 243 |
| |
221 |
| - | |
222 |
| - | |
223 |
| - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
224 | 247 |
| |
225 | 248 |
| |
226 | 249 |
| |
|
0 commit comments
Comments
(0)