[pgpool-committers: 7287] pgpool: Fix file swapping race condition in pool_passwd.
Tatsuo Ishii
ishii at sraoss.co.jp
Mon Nov 30 13:16:55 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_2_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=86d4dd0ec4816764cfe1caa2c964fb6efb0952e6
Modified Files
--------------
src/auth/pool_passwd.c | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
More information about the pgpool-committers
mailing list