diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-10-08 17:22:04 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-10-08 17:22:18 +0300 |
commit | fd8148250c8c46fac04277e7a07f8dd2908dd477 (patch) | |
tree | e4ba2001706d8ca09dc38cfa0fdf73eec0e17d97 /debian/patches/51-default-sockets-in-var.patch | |
download | postgresql-10-fd8148250c8c46fac04277e7a07f8dd2908dd477.tar.gz |
Imported postgresql-10 10.0-1debian/10.0-1debian
Diffstat (limited to 'debian/patches/51-default-sockets-in-var.patch')
-rw-r--r-- | debian/patches/51-default-sockets-in-var.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/51-default-sockets-in-var.patch b/debian/patches/51-default-sockets-in-var.patch new file mode 100644 index 0000000..24bd6b1 --- /dev/null +++ b/debian/patches/51-default-sockets-in-var.patch @@ -0,0 +1,20 @@ +Author: Martin Pitt <mpitt@debian.org> +Description: Put server Unix sockets into /var/run/postgresql/ by default +Forwarded: No, Debian specific configuration with postgresql-common + +Using /tmp for sockets allows everyone to spoof a PostgreSQL server. Thus use +/var/run/postgresql/ for "system" clusters which run as 'postgres' (user +clusters will still use /tmp). Since system cluster are by far the common case, +set it as default. + +--- a/src/include/pg_config_manual.h ++++ b/src/include/pg_config_manual.h +@@ -161,7 +161,7 @@ + * here's where to twiddle it. You can also override this at runtime + * with the postmaster's -k switch. + */ +-#define DEFAULT_PGSOCKET_DIR "/tmp" ++#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql" + + /* + * This is the default event source for Windows event log. |