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