- Notifications
You must be signed in to change notification settings - Fork28
Commitbe76a6d
committed
Secure Unix-domain sockets of "make check" temporary clusters.
Any OS user able to access the socket can connect as the bootstrapsuperuser and proceed to execute arbitrary code as the OS user runningthe test. Protect against that by placing the socket in a temporary,mode-0700 subdirectory of /tmp. The pg_regress-based test suites andthe pg_upgrade test suite were vulnerable; the $(prove_check)-based testsuites were already secure. Back-patch to 8.4 (all supported versions).The hazard remains wherever the temporary cluster accepts TCPconnections, notably on Windows.As a convenient side effect, this lets testing proceed smoothly inbuilds that override DEFAULT_PGSOCKET_DIR. Popular non-default valueslike /var/run/postgresql are often unwritable to the build user.Security:CVE-2014-00671 parent9e6b1bf commitbe76a6d
File tree
3 files changed
+143
-28
lines changed- contrib/pg_upgrade
- doc/src/sgml
- src/test/regress
3 files changed
+143
-28
lines changedLines changed: 32 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 |
| - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
26 | 54 |
| |
27 | 55 |
| |
28 |
| - | |
| 56 | + | |
29 | 57 |
| |
30 | 58 |
| |
31 | 59 |
| |
| |||
86 | 114 |
| |
87 | 115 |
| |
88 | 116 |
| |
89 |
| - | |
90 | 117 |
| |
91 | 118 |
| |
92 | 119 |
| |
|
Lines changed: 8 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
76 | 69 |
| |
77 | 70 |
| |
78 | 71 |
| |
|
Lines changed: 103 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
| |||
109 | 110 |
| |
110 | 111 |
| |
111 | 112 |
| |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
112 | 119 |
| |
113 | 120 |
| |
114 | 121 |
| |
| |||
307 | 314 |
| |
308 | 315 |
| |
309 | 316 |
| |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
310 | 393 |
| |
311 | 394 |
| |
312 | 395 |
| |
| |||
759 | 842 |
| |
760 | 843 |
| |
761 | 844 |
| |
762 |
| - | |
763 |
| - | |
| 845 | + | |
764 | 846 |
| |
765 | 847 |
| |
766 | 848 |
| |
| |||
769 | 851 |
| |
770 | 852 |
| |
771 | 853 |
| |
| 854 | + | |
772 | 855 |
| |
773 | 856 |
| |
774 | 857 |
| |
775 |
| - | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
776 | 868 |
| |
777 | 869 |
| |
778 | 870 |
| |
| |||
2067 | 2159 |
| |
2068 | 2160 |
| |
2069 | 2161 |
| |
2070 |
| - | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
2071 | 2165 |
| |
2072 | 2166 |
| |
2073 | 2167 |
| |
| |||
2240 | 2334 |
| |
2241 | 2335 |
| |
2242 | 2336 |
| |
2243 |
| - | |
2244 |
| - | |
2245 |
| - | |
2246 |
| - | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
2247 | 2342 |
| |
2248 | 2343 |
| |
2249 | 2344 |
| |
|
0 commit comments
Comments
(0)