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

Noah Misch <noah@leadboat.com>

Commit: b72de09a1b8e55774b70add4de0f8c59cef6cf6f
Author: Noah Misch <noah@leadboat.com>
Date: 2023-11-06T14:14:13Z
Releases: 17.0
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.

Files

PathChange+/−
src/backend/utils/init/miscinit.c modified +8 −0