postgresql/contrib/pg_upgrade
Noah Misch be76a6d39e Secure Unix-domain sockets of "make check" temporary clusters.
Any OS user able to access the socket can connect as the bootstrap
superuser and proceed to execute arbitrary code as the OS user running
the test.  Protect against that by placing the socket in a temporary,
mode-0700 subdirectory of /tmp.  The pg_regress-based test suites and
the pg_upgrade test suite were vulnerable; the $(prove_check)-based test
suites were already secure.  Back-patch to 8.4 (all supported versions).
The hazard remains wherever the temporary cluster accepts TCP
connections, notably on Windows.

As a convenient side effect, this lets testing proceed smoothly in
builds that override DEFAULT_PGSOCKET_DIR.  Popular non-default values
like /var/run/postgresql are often unwritable to the build user.

Security: CVE-2014-0067
2014-06-14 09:41:13 -04:00
..
.gitignore pg_upgrade: Add new generated file to .gitignore 2012-03-20 20:40:31 +02:00
check.c pg_update: slight major version adjustment 2014-05-14 21:13:59 -04:00
controldata.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
dump.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
exec.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
file.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
function.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
IMPLEMENTATION Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
info.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
Makefile Fix contrib/pg_upgrade to clean all the cruft made during "make check". 2014-01-02 14:20:28 -05:00
option.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
page.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
parallel.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
pg_upgrade.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
pg_upgrade.h pg_upgrade: error out on 'line' data type usage 2014-05-14 16:26:13 -04:00
relfilenode.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
server.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
tablespace.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
test.sh Secure Unix-domain sockets of "make check" temporary clusters. 2014-06-14 09:41:13 -04:00
TESTING Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05:00
util.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
version_old_8_3.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
version.c Fix whitespace 2014-05-15 13:23:31 -04:00