82b611ed | 15-Feb-2022 |
Ed Maste <emaste@FreeBSD.org> |
elfctl: fix operations with multiple features on multiple files
Previously an invocation like
elfctl -e +feature1,feature2 file1 file2
would set both feature flags in file 1 but only feature1 in
elfctl: fix operations with multiple features on multiple files
Previously an invocation like
elfctl -e +feature1,feature2 file1 file2
would set both feature flags in file 1 but only feature1 in file2 (due to the string being modified by strsep()).
Reported by: jrm Tested by: jrm MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34283
show more ...
|
b8185579 | 15-Feb-2022 |
Ed Maste <emaste@FreeBSD.org> |
elfctl: fix -e invalid operation error handling
Validate the operation prior to parsing the feature string, so that e.g. -e 0x1 reports invalid operation '0' rather than invalid feature 'x11'. Also
elfctl: fix -e invalid operation error handling
Validate the operation prior to parsing the feature string, so that e.g. -e 0x1 reports invalid operation '0' rather than invalid feature 'x11'. Also make it an error rather than a warning, so that it is not repeated if multiple files are specified.
(Previously an invalid operation resulted in a segfault.)
MFC after: 3 days Sponsored by: The FreeBSD Foundation
show more ...
|
c763f99d | 13-Jan-2021 |
Ed Maste <emaste@FreeBSD.org> |
elfctl: prefix disable flags with "no"
Some ELF feature flags indicate a request to opt-out of some feature, for example NT_FREEBSD_FCTL_ASLR_DISABLE indicates that ASLR should be disabled for the t
elfctl: prefix disable flags with "no"
Some ELF feature flags indicate a request to opt-out of some feature, for example NT_FREEBSD_FCTL_ASLR_DISABLE indicates that ASLR should be disabled for the tagged binary. Using "aslr" as the short name for the flag is confusing as it seems to indicate a request for ASLR to be enabled. Rename "noaslr", and make a similar change for other opt-out flags.
Reviewed by: bapt, manu, markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28139
show more ...
|