Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145982449
D34474.id103643.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
871 B
Referenced Files
None
Subscribers
None
D34474.id103643.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,6 +63,15 @@
fi
while read dev mp type more ; do
[ "${type}" = "swap" ] || continue
+ case ${dev} in
+ *.eli)
+ dumpon_warn_unencrypted
+ dev=${dev%.eli}
+ ;;
+ *.bde)
+ dumpon_warn_unencrypted
+ dev=${dev%.bde}
+ esac
[ -c "${dev}" ] || continue
dumpon_try "${dev}" 2>/dev/null && return 0
done </etc/fstab
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 27, 6:12 PM (5 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29038195
Default Alt Text
D34474.id103643.diff (871 B)
Attached To
Mode
D34474: dumpon: use underlying device if encrypted swap is in use
Attached
Detach File
Event Timeline
Log In to Comment