Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144793587
D34474.1776510244.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
937 B
Referenced Files
None
Subscribers
None
D34474.1776510244.diff
View Options
Index: libexec/rc/rc.d/dumpon
===================================================================
--- libexec/rc/rc.d/dumpon
+++ 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,10 +63,14 @@
fi
while read dev mp type more ; do
[ "${type}" = "swap" ] || continue
+ if expr ${dev} : .*\\.eli$ >/dev/null; then
+ dumpon_warn_unencrypted
+ dev=${dev%.eli}
+ fi
[ -c "${dev}" ] || continue
dumpon_try "${dev}" 2>/dev/null && return 0
done </etc/fstab
- echo "No suitable dump device was found." 1>&2
+ warn "No suitable dump device was found."
return 1
;;
*)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 18, 11:04 AM (8 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28375433
Default Alt Text
D34474.1776510244.diff (937 B)
Attached To
Mode
D34474: dumpon: use underlying device if encrypted swap is in use
Attached
Detach File
Event Timeline
Log In to Comment