pgsql: Set GUC "is_superuser" in all processes that set AuthenticatedUs

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Set GUC "is_superuser" in all processes that set AuthenticatedUs
Date: 2023-11-06 14:17:12
Message-ID: E1r00Pf-004Bal-SX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Set GUC "is_superuser" in all processes that set AuthenticatedUserId.

It was always false in single-user mode, in autovacuum workers, and in
background workers. This had no specifically-identified security
consequences, but non-core code or future work might make it
security-relevant. Back-patch to v11 (all supported versions).

Jelte Fennema-Nio. Reported by Jelte Fennema-Nio.

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2c3c5ec4936a6f20354766612ebd650abbb17817

Modified Files
--------------
src/backend/utils/init/miscinit.c | 8 ++++++++
1 file changed, 8 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2023-11-06 14:43:21 Re: pgsql: Migrate logical slots to the new node during an upgrade.
Previous Message Peter Eisentraut 2023-11-06 12:45:34 pgsql: Translation updates