HomePhabricator

lockedpool: avoid sensitive data in core files (FreeBSD)

Description

lockedpool: avoid sensitive data in core files (FreeBSD)

Summary:

This is a followup to PR15600 to also use madvise(2) on FreeBSD
to avoid sensitive data allocated with secure_allocator ending up
in core files in addition to preventing it from going to the swap.

This is a backport of Core PR18443

Depends on D8879

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, deadalnix, Fabien

Reviewed By: #bitcoin_abc, deadalnix, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D8880

Details

Provenance
Vasil Dimov <vd@FreeBSD.org>Authored on Jan 12 2021, 15:17
PiRKCommitted on Jan 12 2021, 15:17
abc-botPushed on Jan 12 2021, 15:24
Reviewer
Restricted Project
Differential Revision
D8880: lockedpool: avoid sensitive data in core files (FreeBSD)
Parents
rABCcd5beaf5074e: [Cashtab] extension with new pkgs, version bump
Branches
Unknown
Tags
Unknown