HomeFreeBSD

elfctl: add backwards compatibility for "no" prefixes

Description

elfctl: add backwards compatibility for "no" prefixes

I am going to prefix opt-out ELF feature flag names with "no" to make
their meaning more clear (review D28139), but there are some uses of the
existing names already (e.g., the PR referenced below).

For now accept the older, unprefixed name as well, and emit a warning.
We can revert this after FreeBSD 13 branches.

% elfctl -e +aslr foo
elfctl: interpreting aslr as noaslr; please specify noaslr

PR: 239873 (related)
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28140

(cherry picked from commit 3dfcb70b6ae9bcb9fd6a66721bebdb8c6a53c329)

Details

Provenance
emasteAuthored on Jan 13 2021, 7:21 PM
Differential Revision
D28140: elfctl: add backwards compatibility for "no" prefixes
Parents
rG70cdab054c8f: rctl(4): support throttling resource usage to 0
Branches
Unknown
Tags
Unknown