forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2a1f846
committed
Allow root-owned SSL private keys in libpq, not only the backend.
This change makes libpq apply the same private-key-file ownershipand permissions checks that we have used in the backend since commit9a83564. Namely, that the private key can be owned by either thecurrent user or root (with different file permissions allowed in thetwo cases). This allows system-wide management of key files, whichis just as sensible on the client side as the server, particularlywhen the client is itself some application daemon.Sync the comments about this between libpq and the backend, too.Back-patch ofa59c795 and50f0347 into all supported branches.David SteeleDiscussion:https://postgr.es/m/f4b7bc55-97ac-9e69-7398-335e212f7743@pgmasters.net1 parentac910bb commit2a1f846
File tree
3 files changed
+69
-25
lines changed- doc/src/sgml
- src
- backend/libpq
- interfaces/libpq
3 files changed
+69
-25
lines changedLines changed: 19 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8397 | 8397 |
| |
8398 | 8398 |
| |
8399 | 8399 |
| |
8400 |
| - | |
| 8400 | + | |
8401 | 8401 |
| |
8402 | 8402 |
| |
8403 | 8403 |
| |
8404 | 8404 |
| |
8405 |
| - | |
8406 |
| - | |
8407 |
| - | |
| 8405 | + | |
8408 | 8406 |
| |
8409 | 8407 |
| |
8410 |
| - | |
8411 |
| - | |
| 8408 | + | |
8412 | 8409 |
| |
8413 |
| - | |
| 8410 | + | |
| 8411 | + | |
8414 | 8412 |
| |
8415 | 8413 |
| |
8416 | 8414 |
| |
| 8415 | + | |
| 8416 | + | |
| 8417 | + | |
| 8418 | + | |
| 8419 | + | |
| 8420 | + | |
| 8421 | + | |
| 8422 | + | |
| 8423 | + | |
| 8424 | + | |
| 8425 | + | |
| 8426 | + | |
| 8427 | + | |
| 8428 | + | |
8417 | 8429 |
| |
8418 | 8430 |
| |
8419 | 8431 |
| |
|
Lines changed: 13 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
| 146 | + | |
146 | 147 |
| |
147 | 148 |
| |
148 | 149 |
| |
| |||
153 | 154 |
| |
154 | 155 |
| |
155 | 156 |
| |
156 |
| - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
157 | 162 |
| |
158 |
| - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
159 | 170 |
| |
160 | 171 |
| |
161 | 172 |
| |
| |||
166 | 177 |
| |
167 | 178 |
| |
168 | 179 |
| |
169 |
| - | |
170 | 180 |
| |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 |
| - | |
181 |
| - | |
182 |
| - | |
183 | 181 |
| |
184 | 182 |
| |
185 | 183 |
| |
|
Lines changed: 37 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1229 | 1229 |
| |
1230 | 1230 |
| |
1231 | 1231 |
| |
1232 |
| - | |
1233 |
| - | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
1234 | 1268 |
| |
1235 | 1269 |
| |
1236 |
| - | |
| 1270 | + | |
1237 | 1271 |
| |
1238 | 1272 |
| |
1239 | 1273 |
| |
|
0 commit comments
Comments
(0)