Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102950900
D34474.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
782 B
Referenced Files
None
Subscribers
None
D34474.diff
View Options
diff --git a/libexec/rc/rc.d/dumpon b/libexec/rc/rc.d/dumpon
--- a/libexec/rc/rc.d/dumpon
+++ b/libexec/rc/rc.d/dumpon
@@ -33,6 +33,19 @@
return 1
}
+dumpon_warn_unencrypted()
+{
+ if [ -n "${dumppubkey}" ]; then
+ return
+ fi
+ for flag in ${dumpon_flags}; do
+ if [ $flag = -k ]; then
+ return
+ fi
+ done
+ warn "Kernel dumps will be written to the swap partition without encryption."
+}
+
dumpon_start()
{
# Enable dumpdev so that savecore can see it. Enable it
@@ -50,6 +63,12 @@
fi
while read dev mp type more ; do
[ "${type}" = "swap" ] || continue
+ case ${dev} in
+ *.bde|*.eli)
+ dumpon_warn_unencrypted
+ dev=${dev%.*}
+ ;;
+ esac
[ -c "${dev}" ] || continue
dumpon_try "${dev}" 2>/dev/null && return 0
done </etc/fstab
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 3:04 AM (21 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14728713
Default Alt Text
D34474.diff (782 B)
Attached To
Mode
D34474: dumpon: use underlying device if encrypted swap is in use
Attached
Detach File
Event Timeline
Log In to Comment