27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
From: Martin Pitt <mpitt@debian.org>
|
|
Date: Sat, 14 May 2022 02:43:37 +0800
|
|
Subject: 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.
|
|
---
|
|
src/include/pg_config_manual.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h
|
|
index 743401c..6b23e7b 100644
|
|
--- a/src/include/pg_config_manual.h
|
|
+++ b/src/include/pg_config_manual.h
|
|
@@ -179,7 +179,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.
|