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

Tatsuo Ishii ishii at sraoss.co.jp
Mon Nov 30 13:16:45 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_0_STABLE

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

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



More information about the pgpool-committers mailing list