1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00

LD_PRELOAD may not be in ENV

This commit is contained in:
Florent Daigniere
2023-04-20 17:46:27 +02:00
parent 91f4ac609f
commit ede331f657
2 changed files with 2 additions and 1 deletions

View File

@@ -76,7 +76,7 @@ def set_env(required_secrets=[], log_filters=[], log_file=None):
sys.stderr = LogFilter(sys.stderr, log_filters, log_file)
log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", 'WARNING'))
if not _is_compatible_with_hardened_malloc():
if 'LD_PRELOAD' in os.environ and not _is_compatible_with_hardened_malloc():
del os.environ['LD_PRELOAD']
""" This will set all the environment variables and retains only the secrets we need """

View File

@@ -0,0 +1 @@
In front, config.py can be called several times. LD_PRELOAD may have already been removed from ENV