postgresql/src
Noah Misch 481831b438 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:18 -04:00
..
backend Fix ancient encoding error in hungarian.stop. 2014-06-10 22:48:52 -04:00
bin Fix pg_restore's processing of old-style BLOB COMMENTS data. 2014-06-12 20:14:49 -04:00
include Add mkdtemp() to libpgport. 2014-06-14 09:41:18 -04:00
interfaces Revert "Fix bogus %name-prefix option syntax in all our Bison files." 2014-05-28 19:29:29 -04:00
makefiles Don't use deprecated dllwrap on Cygwin. 2014-02-01 16:14:01 -05:00
pl Make plpython_unicode regression test work in more database encodings. 2014-06-03 12:02:22 -04:00
port Add mkdtemp() to libpgport. 2014-06-14 09:41:18 -04:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Secure Unix-domain sockets of "make check" temporary clusters. 2014-06-14 09:41:18 -04:00
timezone Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
tools Add mkdtemp() to libpgport. 2014-06-14 09:41:18 -04:00
tutorial Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in Revert "Backpatch pgxs vpath build and installation fixes (v2)" 2013-10-07 22:39:30 -04:00
Makefile.shlib fix whitespace 2014-02-01 16:30:14 -05:00
nls-global.mk Fix makefile logic to not break the build when xgettext is missing 2010-10-14 23:16:46 +03:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00