]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Set GUC "is_superuser" in all processes that set AuthenticatedUserId.
authorNoah Misch <noah@leadboat.com>
Mon, 6 Nov 2023 14:14:13 +0000 (06:14 -0800)
committerNoah Misch <noah@leadboat.com>
Mon, 6 Nov 2023 14:14:16 +0000 (06:14 -0800)
commit2c3c5ec4936a6f20354766612ebd650abbb17817
tree5c1b7ab469c908edb3188e5d81a0d5bf3efbc83e
parent78541273156c74ed20acdc141cf2f996098cd794
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.
src/backend/utils/init/miscinit.c