From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Prevent running pg_basebackup as root |
Date: | 2020-02-01 09:33:20 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
Prevent running pg_basebackup as root
Similarly to pg_upgrade, pg_ctl and initdb, a root user is able to use
--version and --help, but cannot execute the actual operation to avoid
the creation of files with permissions incompatible with the
postmaster.
This is a behavior change, so not back-patching is done.
Author: Ian Barwick
Discussion: https://postgr.es/m/CABvVfJVqOdD2neLkYdygdOHvbWz_5K_iWiqY+psMfA=FeAa3qQ@mail.gmail.com
Branch
------
master
Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2020-02-01 09:36:53 | Re: pgsql: Fix memory leak on DSM slot exhaustion. |
Previous Message | Thomas Munro | 2020-02-01 02:36:09 | pgsql: Fix memory leak on DSM slot exhaustion. |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2020-02-01 09:34:33 | Re: Prevent pg_basebackup running as root |
Previous Message | Dent John | 2020-02-01 09:09:32 | Re: The flinfo->fn_extra question, from me this time. |