Page MenuHomeFreeBSD

elfctl: prefix disable flags with "no"
ClosedPublic

Authored by emaste on Jan 13 2021, 6:15 PM.
Tags
None
Referenced Files
F107036108: D28139.diff
Thu, Jan 9, 7:50 AM
Unknown Object (File)
Fri, Jan 3, 4:45 AM
Unknown Object (File)
Sun, Dec 29, 10:43 PM
Unknown Object (File)
Fri, Dec 20, 12:56 AM
Unknown Object (File)
Nov 7 2024, 7:17 PM
Unknown Object (File)
Oct 30 2024, 6:30 PM
Unknown Object (File)
Oct 24 2024, 2:53 AM
Unknown Object (File)
Oct 4 2024, 11:29 PM
Subscribers

Details

Summary

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 similar for other opt-out flags.

Example output with the change:

File '/usr/bin/true' features:
noaslr 'Disable ASLR' is unset.
noprotmax 'Disable implicit PROT_MAX' is unset.
nostackgap 'Disable stack gap' is unset.
wxneeded 'Requires W+X mappings' is unset.
la48 'amd64: Limit user VA to 48bit' is unset.
noaslrstkgap 'Disable ASLR stack gap' is unset.

Discussed with manu and bapt who approve.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped