[backport] Make whitebind/whitelist permissions more flexible
Combined submission of D5928 and D5934 due to implicit dependency.
Their test plans are identical.
Merge instructions: DO NOT SQUASH !
Summary: This is a partial backport of Core https://github.com/bitcoin/bitcoin/pull/16248 : https://github.com/bitcoin/bitcoin/pull/16248/commits/e5b26deaaa6842f7dd7c4537ede000f965ea0189
Test Plan: ninja all check-all
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Subscribers: Fabien
Differential Revision: https://reviews.bitcoinabc.org/D5928
Summary: This is a partial backport of Core https://github.com/bitcoin/bitcoin/pull/16248 : https://github.com/bitcoin/bitcoin/pull/16248/commits/c5b404e8f1973afe071a07c63ba1038eefe13f0f
Test Plan: ninja all check-all
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D5934