2023-01-09 13:52:13 +01:00
|
|
|
From 57f2400bfce206e16e7f282cd3b93cd4d7e99dd7 Mon Sep 17 00:00:00 2001
|
2022-02-28 16:31:11 +01:00
|
|
|
From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?=
|
|
|
|
<psuarezhernandez@suse.com>
|
|
|
|
Date: Mon, 28 Feb 2022 14:25:43 +0000
|
|
|
|
Subject: [PATCH] Prevent shell injection via pre_flight_script_args
|
|
|
|
(#497)
|
|
|
|
|
|
|
|
Add tests around preflight script args
|
|
|
|
|
|
|
|
Readjust logic to validate script args
|
|
|
|
|
|
|
|
Use RLock to prevent issues in single threads
|
|
|
|
---
|
2023-01-09 13:52:13 +01:00
|
|
|
salt/_logging/impl.py | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
2022-02-28 16:31:11 +01:00
|
|
|
|
|
|
|
diff --git a/salt/_logging/impl.py b/salt/_logging/impl.py
|
2023-01-09 13:52:13 +01:00
|
|
|
index e050f43caf..2d1a276cb8 100644
|
2022-02-28 16:31:11 +01:00
|
|
|
--- a/salt/_logging/impl.py
|
|
|
|
+++ b/salt/_logging/impl.py
|
2023-01-09 13:52:13 +01:00
|
|
|
@@ -107,7 +107,7 @@ DFLT_LOG_FMT_LOGFILE = "%(asctime)s,%(msecs)03d [%(name)-17s:%(lineno)-4d][%(lev
|
2022-02-28 16:31:11 +01:00
|
|
|
|
|
|
|
# LOG_LOCK is used to prevent deadlocks on using logging
|
|
|
|
# in combination with multiprocessing with salt-api
|
|
|
|
-LOG_LOCK = threading.Lock()
|
|
|
|
+LOG_LOCK = threading.RLock()
|
|
|
|
|
|
|
|
|
2023-01-09 13:52:13 +01:00
|
|
|
class SaltLogRecord(logging.LogRecord):
|
2022-02-28 16:31:11 +01:00
|
|
|
--
|
2023-01-09 13:52:13 +01:00
|
|
|
2.37.3
|
2022-02-28 16:31:11 +01:00
|
|
|
|
|
|
|
|