Commit 2a1f846
committed
Allow root-owned SSL private keys in libpq, not only the backend.
This change makes libpq apply the same private-key-file ownership
and permissions checks that we have used in the backend since commit
9a83564. Namely, that the private key can be owned by either the
current user or root (with different file permissions allowed in the
two cases). This allows system-wide management of key files, which
is just as sensible on the client side as the server, particularly
when the client is itself some application daemon.
Sync the comments about this between libpq and the backend, too.
Back-patch of a59c795 and 50f0347 into all supported branches.
David Steele
Discussion: https://postgr.es/m/f4b7bc55-97ac-9e69-7398-335e212f7743@pgmasters.net1 parent ac910bb commit 2a1f846
File tree
3 files changed
+69
-25
lines changed- doc/src/sgml
- src
- backend/libpq
- interfaces/libpq
3 files changed
+69
-25
lines changed| 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 | | |
| |||
| 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 | | |
| |||
| 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