forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork0
Commit95cefd3
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 parent8b0d1c8 commit95cefd3
File tree
4 files changed
+120
-25
lines changed- doc/src/sgml
- src/test/regress
4 files changed
+120
-25
lines changedLines changed: 8 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
78 | 71 |
| |
79 | 72 |
| |
80 | 73 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 |
| |
2 | 4 |
| |
3 | 5 |
| |
|
Lines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
| 55 | + | |
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 |
| |
63 | 68 |
| |
64 | 69 |
| |
| |||
169 | 174 |
| |
170 | 175 |
| |
171 | 176 |
| |
172 |
| - | |
| 177 | + | |
| 178 | + | |
173 | 179 |
| |
174 | 180 |
| |
175 | 181 |
| |
|
Lines changed: 102 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
| 34 | + | |
33 | 35 |
| |
34 | 36 |
| |
35 | 37 |
| |
| |||
96 | 98 |
| |
97 | 99 |
| |
98 | 100 |
| |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
99 | 107 |
| |
100 | 108 |
| |
101 | 109 |
| |
| |||
292 | 300 |
| |
293 | 301 |
| |
294 | 302 |
| |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 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 | + | |
295 | 378 |
| |
296 | 379 |
| |
297 | 380 |
| |
| |||
753 | 836 |
| |
754 | 837 |
| |
755 | 838 |
| |
756 |
| - | |
757 |
| - | |
| 839 | + | |
758 | 840 |
| |
759 | 841 |
| |
760 | 842 |
| |
| |||
763 | 845 |
| |
764 | 846 |
| |
765 | 847 |
| |
| 848 | + | |
766 | 849 |
| |
767 | 850 |
| |
768 | 851 |
| |
769 |
| - | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
770 | 861 |
| |
771 | 862 |
| |
772 | 863 |
| |
| |||
2035 | 2126 |
| |
2036 | 2127 |
| |
2037 | 2128 |
| |
2038 |
| - | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
2039 | 2132 |
| |
2040 | 2133 |
| |
2041 | 2134 |
| |
| |||
2185 | 2278 |
| |
2186 | 2279 |
| |
2187 | 2280 |
| |
2188 |
| - | |
2189 |
| - | |
2190 |
| - | |
2191 |
| - | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
2192 | 2286 |
| |
2193 | 2287 |
| |
2194 | 2288 |
| |
|
0 commit comments
Comments
(0)