[pgpool-committers: 7286] pgpool: Fix file swapping race condition in pool_passwd.

Tatsuo Ishii ishii at sraoss.co.jp
Mon Nov 30 13:16:50 JST 2020


Fix file swapping race condition in pool_passwd.

Existing implementation first stats pool passwd file and then open the
file. To prevent file-swapping due to file race conditions, open the
key file before checking it by stat().

Patch by: Masaya Kawamoto

Branch
------
V4_1_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=39c146446d084d12c4d1ce1a935bd6bc78f8faf2

Modified Files
--------------
src/auth/pool_passwd.c | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)



More information about the pgpool-committers mailing list