sysown / proxysql

High-performance MySQL proxy with a GPL license.
http://www.proxysql.com
GNU General Public License v3.0
6.05k stars 983 forks source link

Do not use mmap for CA certificate #4577

Closed renecannao closed 4 months ago

renecannao commented 4 months ago

In proxysql_SSL_CTX_local_x509store_add_file(), instead of use mmap() we now read the file with pread(). This to avoid rare scenarios in which the CA file is modified while reading it.