summaryrefslogtreecommitdiff
path: root/databases/postgresql10-server/files/postgresql.in
diff options
context:
space:
mode:
authorPalle Girgensohn <girgen@FreeBSD.org>2018-02-08 17:38:36 +0000
committerPalle Girgensohn <girgen@FreeBSD.org>2018-02-08 17:38:36 +0000
commit955b7d13bc3c846c8db5252aba9551900f2bcd5a (patch)
treed01da9b8d4a814953d381a2a12a15e65949b0e1a /databases/postgresql10-server/files/postgresql.in
parentAdd security notice for PostgreSQL (diff)
Update to latest versions of PostgreSQL
2018-02-08 Security Update Release ================================== The PostgreSQL Global Development Group has released an update to all supported versions of our database system, including 10.2, 9.6.7, 9.5.11, 9.4.16, 9.3.21. This release fixes two security issues. This release also fixes issues with VACUUM, GIN indexes, and hash indexes that could lead to data corruption, as well as fixes for using parallel queries and logical replication. All users using the affected versions of PostgreSQL should update as soon as possible. Please see the notes on "Updating" below for any post-update steps that may be required. Please note that PostgreSQL changed its versioning scheme with the release of version 10.0, so updating to version 10.2 from 10.0 or 10.1 is considered a minor update. Security Issues --------------- Two security vulnerabilities have been fixed by this release: * CVE-2018-1052: Fix the processing of partition keys containing multiple expressions * CVE-2018-1053: Ensure that all temporary files made with "pg_upgrade" are non-world-readable Local fixes to the FreeBSD ports -------------------------------- Inform users about data checksums [1]. Make sure /usr/bin/su is used regardless of PATH settings [2]. Enable DTRACE by default [3]. PR: 214671 [1], 223157 [2], 215028 [3] Security: c602c791-0cf4-11e8-a2ec-6cc21735f730
Diffstat (limited to 'databases/postgresql10-server/files/postgresql.in')
-rw-r--r--databases/postgresql10-server/files/postgresql.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/databases/postgresql10-server/files/postgresql.in b/databases/postgresql10-server/files/postgresql.in
index 408d933ec4c1..df4384e6eba2 100644
--- a/databases/postgresql10-server/files/postgresql.in
+++ b/databases/postgresql10-server/files/postgresql.in
@@ -50,6 +50,8 @@ status_cmd="postgresql_command status"
initdb_cmd="postgresql_initdb"
+su_cmd="/usr/bin/su"
+
if [ -n "$2" ]; then
profile="$2"
if [ "x${postgresql_profiles}" != "x" ]; then
@@ -103,12 +105,12 @@ command_args="-D ${postgresql_data} ${postgresql_flags}"
postgresql_command()
{
- su -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
+ ${su_cmd} -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
}
postgresql_initdb()
{
- su -l -c ${postgresql_class} ${postgresql_user} -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}"
+ ${su_cmd} -l -c ${postgresql_class} ${postgresql_user} -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}"
}
run_rc_command "$1"