[Bug 238301] [PATCH] handle encrypted swap in dumpon rc.d script
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Mar 2022 01:09:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238301
--- Comment #7 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=2a719333189d9637c0997c4256e5a42a38505c1e
commit 2a719333189d9637c0997c4256e5a42a38505c1e
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-03-07 19:17:01 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-03-17 01:08:56 +0000
dumpon: use underlying device if encrypted swap is in use
/etc/rc.d/dumpon runs before /etc/rc.d/swap. When encrypted swap is in
use the .eli or .bde device will not exist at the time dumpon runs.
Even if this is addressed it does not make sense to dump core to
encrypted swap, as the encryption key will not be available after
reboot rendering the dump useless. Thus, for the case that dumpdev=AUTO
and encrypted swap is in use, strip the extension and use the underlying
device.
Emit a warning if we are using the underlying device and the user has not
configured dump encryption, so that the user knows that the will not be
encrypted.
PR: 238301
Reported by: Ivan Rozhuk
Reviewed by: jilles
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34474
(cherry picked from commit 67e751f167c98d02f85eb38401e3e6388db09ac1)
libexec/rc/rc.d/dumpon | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
--
You are receiving this mail because:
You are the assignee for the bug.