mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-04 15:14:25 +02:00
41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
From 0643f56a6fe7d149d25f5e41288b4e0274e2bf89 Mon Sep 17 00:00:00 2001
|
|
From: Ariadne Conill <ariadne@dereferenced.org>
|
|
Date: Wed, 13 Oct 2021 21:12:10 -0600
|
|
Subject: [PATCH] bootmisc: switch wipe_tmp setting to no by default
|
|
|
|
When wipe_tmp=yes, an insufficiently bounded rm -rf occurs that,
|
|
under specific unknown circumstances, can escape into other filesystems
|
|
resulting in data loss.
|
|
|
|
See alpine/aports#13070.
|
|
---
|
|
conf.d/bootmisc | 2 +-
|
|
init.d/bootmisc.in | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/conf.d/bootmisc b/conf.d/bootmisc
|
|
index dd5b08e0..5cf18d33 100644
|
|
--- a/conf.d/bootmisc
|
|
+++ b/conf.d/bootmisc
|
|
@@ -3,7 +3,7 @@ clean_tmp_dirs="/tmp"
|
|
|
|
# Should we wipe the tmp paths completely or just selectively remove known
|
|
# locks / files / etc... ?
|
|
-wipe_tmp="YES"
|
|
+wipe_tmp="NO"
|
|
|
|
# Write the initial dmesg log into /var/log/dmesg after boot
|
|
# This may be useful if you need the kernel boot log afterwards
|
|
diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in
|
|
index 31f81a63..697f35ca 100644
|
|
--- a/init.d/bootmisc.in
|
|
+++ b/init.d/bootmisc.in
|
|
@@ -17,7 +17,7 @@ depend()
|
|
keyword -prefix -timeout
|
|
}
|
|
|
|
-: "${wipe_tmp:=${WIPE_TMP:-yes}}"
|
|
+: "${wipe_tmp:=${WIPE_TMP:-no}}"
|
|
: "${log_dmesg:=${LOG_DMESG:-yes}}"
|
|
|
|
cleanup_tmp_dir()
|