new file mode 100644
@@ -0,0 +1,35 @@
+From d20ba041a0f4968fdbc2745827f9af676339924f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20Majchrowicz?= <sectroyer@gmail.com>
+Date: Thu, 18 Jun 2026 19:20:30 +0200
+Subject: [PATCH] Refuse symlinked devel log files
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: MichaĆ Majchrowicz <sectroyer@gmail.com>
+(cherry picked from commit 259fe40c7fa519020ef7a3f8ef8d61586b72ecc3)
+
+CVE: CVE-2026-56652
+Upstream-Status: Backport [https://github.com/scottchiefbaker/dool/commit/259fe40c7fa519020ef7a3f8ef8d61586b72ecc3]
+Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
+---
+ dool | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/dool b/dool
+index fc1015d..2df407d 100755
+--- a/dool
++++ b/dool
+@@ -2132,7 +2132,11 @@ def devel_log(msg):
+ if not DEBUG_FH:
+ log_file = "/tmp/dool-devel.log"
+ print("Writing devel log: '%s'" % log_file)
+- DEBUG_FH = open(log_file, "w", 1)
++ flags = os.O_WRONLY | os.O_CREAT | os.O_TRUNC
++ if hasattr(os, 'O_NOFOLLOW'):
++ flags |= os.O_NOFOLLOW
++ fd = os.open(log_file, flags, 0o600)
++ DEBUG_FH = os.fdopen(fd, "w", 1)
+
+ # Print out the header line for the devel log
+ DEBUG_FH.write("|Time |Since Prev |Description|\n");
@@ -11,6 +11,7 @@ RDEPENDS:${PN} += "python3-core python3-misc python3-resource python3-shell pyth
SRC_URI = "git://github.com/scottchiefbaker/dool.git;branch=next;protocol=https;tag=v${PV} \
file://CVE-2026-56651.patch \
+ file://CVE-2026-56652.patch \
"
SRCREV = "b74503e2dfbca8ef01c284d40aa77dc82be308b9"